Revision: 55140
http://brlcad.svn.sourceforge.net/brlcad/?rev=55140&view=rev
Author: starseeker
Date: 2013-04-12 13:24:50 +0000 (Fri, 12 Apr 2013)
Log Message:
-----------
ws, downcase
Modified Paths:
--------------
brlcad/trunk/src/other/poly2tri/CMakeLists.txt
Modified: brlcad/trunk/src/other/poly2tri/CMakeLists.txt
===================================================================
--- brlcad/trunk/src/other/poly2tri/CMakeLists.txt 2013-04-12 12:44:04 UTC
(rev 55139)
+++ brlcad/trunk/src/other/poly2tri/CMakeLists.txt 2013-04-12 13:24:50 UTC
(rev 55140)
@@ -1,61 +1,60 @@
# Minimum required version of CMake
CMAKE_MINIMUM_REQUIRED(VERSION 2.8)
-IF(COMMAND CMAKE_POLICY)
+if(COMMAND CMAKE_POLICY)
CMAKE_POLICY(SET CMP0003 NEW)
-ENDIF(COMMAND CMAKE_POLICY)
+endif(COMMAND CMAKE_POLICY)
# Set CMake project name
-PROJECT(Poly2Tri)
-##enable_testing()
+project(Poly2Tri)
# SET LIBNAME
set(P2T_LIB_NAME p2t)
# Testing option
OPTION_WITH_DEFAULT(P2T_TESTS "Build libp2t tests" NO)
-MARK_AS_ADVANCED(P2T_TESTS)
-IF(P2T_TESTS)
- INCLUDE(CTest)
- ENABLE_TESTING()
-ENDIF(P2T_TESTS)
+mark_as_advanced(P2T_TESTS)
+if(P2T_TESTS)
+ include(CTest)
+ enable_testing()
+endif(P2T_TESTS)
-INCLUDE_DIRECTORIES(
+include_directories(
${CMAKE_CURRENT_SOURCE_DIR}
)
set(LIBP2T_PUBLIC_HDRS
- poly2tri/poly2tri.h
- poly2tri/common/shapes.h
- poly2tri/sweep/cdt.h
-)
+ poly2tri/poly2tri.h
+ poly2tri/common/shapes.h
+ poly2tri/sweep/cdt.h
+ )
set(LIBP2T_PRIVATE_HDRS
- poly2tri/common/utils.h
- poly2tri/sweep/advancing_front.h
- poly2tri/sweep/sweep.h
- poly2tri/sweep/sweep_context.h
-)
+ poly2tri/common/utils.h
+ poly2tri/sweep/advancing_front.h
+ poly2tri/sweep/sweep.h
+ poly2tri/sweep/sweep_context.h
+ )
set(LIBP2T_SOURCES
- poly2tri/common/shapes.cc
- poly2tri/common/utils.cc
- poly2tri/sweep/advancing_front.cc
- poly2tri/sweep/cdt.cc
- poly2tri/sweep/sweep_context.cc
- poly2tri/sweep/sweep.cc
-)
+ poly2tri/common/shapes.cc
+ poly2tri/common/utils.cc
+ poly2tri/sweep/advancing_front.cc
+ poly2tri/sweep/cdt.cc
+ poly2tri/sweep/sweep_context.cc
+ poly2tri/sweep/sweep.cc
+ )
set(LIBP2T_TEST_SOURCES
testbed/main.cc
-)
+ )
-IF(NOT LIB_DIR)
- SET(LIB_DIR lib)
-ENDIF(NOT LIB_DIR)
-IF(NOT BIN_DIR)
- SET(BIN_DIR bin)
-ENDIF(NOT BIN_DIR)
+if(NOT LIB_DIR)
+ set(LIB_DIR lib)
+endif(NOT LIB_DIR)
+if(NOT BIN_DIR)
+ set(BIN_DIR bin)
+endif(NOT BIN_DIR)
-IF(MSVC)
+if(MSVC)
add_definitions("-DP2T_DLL_EXPORTS")
-ENDIF(MSVC)
+endif(MSVC)
add_definitions("-DP2T_NO_GLFW")
add_library(${P2T_LIB_NAME} ${LIBP2T_SOURCES} ${LIBP2T_PUBLIC_HDRS}
${LIBP2T_PRIVATE_HDRS})
@@ -79,9 +78,9 @@
endif()
target_link_libraries(${P2T_LIB_NAME_STATIC} ${ZLIB_LIBRARY} ${M_LIBRARY})
install(TARGETS ${P2T_LIB_NAME_STATIC}
- RUNTIME DESTINATION ${BIN_DIR}
- LIBRARY DESTINATION ${LIB_DIR}
- ARCHIVE DESTINATION ${LIB_DIR})
+ RUNTIME DESTINATION ${BIN_DIR}
+ LIBRARY DESTINATION ${LIB_DIR}
+ ARCHIVE DESTINATION ${LIB_DIR})
endif(BUILD_STATIC_LIBS)
if(WIN32)
@@ -104,15 +103,9 @@
install(FILES poly2tri/common/shapes.h DESTINATION include/poly2tri/common)
install(FILES poly2tri/sweep/cdt.h DESTINATION include/poly2tri/sweep)
-
-
-
-
-
-
-
-
-
-
-
-
+# Local Variables:
+# tab-width: 8
+# mode: cmake
+# indent-tabs-mode: t
+# End:
+# ex: shiftwidth=2 tabstop=8
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits