Warning, /education/kstars/kstars/htmesh/CMakeLists.txt is written in an unsupported language. File is not indexed.

0001 
0002 INCLUDE(CheckFunctionExists)
0003 check_function_exists(drand48 HAVE_DRAND48)
0004 
0005 configure_file(${CMAKE_CURRENT_SOURCE_DIR}/config-htmesh.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-htmesh.h )
0006 
0007 ### HTMesh library
0008 SET(HTMesh_LIB_SRC
0009     ${kstars_SOURCE_DIR}/kstars/htmesh/MeshIterator.cpp
0010     ${kstars_SOURCE_DIR}/kstars/htmesh/HtmRange.cpp
0011     ${kstars_SOURCE_DIR}/kstars/htmesh/HtmRangeIterator.cpp
0012     ${kstars_SOURCE_DIR}/kstars/htmesh/RangeConvex.cpp
0013     ${kstars_SOURCE_DIR}/kstars/htmesh/SkipList.cpp
0014     ${kstars_SOURCE_DIR}/kstars/htmesh/SkipListElement.cpp
0015     ${kstars_SOURCE_DIR}/kstars/htmesh/SpatialConstraint.cpp
0016 #    ${kstars_SOURCE_DIR}/kstars/htmesh/SpatialDomain.cpp
0017     ${kstars_SOURCE_DIR}/kstars/htmesh/SpatialEdge.cpp
0018     ${kstars_SOURCE_DIR}/kstars/htmesh/SpatialException.cpp
0019     ${kstars_SOURCE_DIR}/kstars/htmesh/SpatialIndex.cpp
0020     ${kstars_SOURCE_DIR}/kstars/htmesh/SpatialVector.cpp
0021     ${kstars_SOURCE_DIR}/kstars/htmesh/HTMesh.cpp
0022     ${kstars_SOURCE_DIR}/kstars/htmesh/MeshBuffer.cpp)
0023 
0024 IF (UNITY_BUILD)
0025     ENABLE_UNITY_BUILD(HTMesh HTMesh_LIB_SRC 10 cpp)
0026 ENDIF ()
0027 
0028 SET(HTMesh_LIB_SRC ${HTMesh_LIB_SRC}
0029     ${kstars_SOURCE_DIR}/kstars/htmesh/cc_aux.c)
0030 
0031 IF (ANDROID)
0032     SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC")
0033 ENDIF ()
0034 
0035 add_library(htmesh STATIC ${HTMesh_LIB_SRC})
0036 
0037 if (BUILD_PYKSTARS)
0038   set_target_properties(htmesh PROPERTIES POSITION_INDEPENDENT_CODE ON)
0039 ENDIF ()
0040 
0041 add_definitions(-D_EXPORTING)
0042 
0043 set_target_properties(htmesh PROPERTIES
0044     VERSION 1.0.0
0045     SOVERSION 1)
0046 
0047 if (NOT ANDROID)
0048     install(TARGETS htmesh ${KDE_INSTALL_TARGETS_DEFAULT_ARGS} )
0049 endif ()
0050 
0051 # If you wish to compile the HTMesh perl wrapper, uncomment this, rebuild and copy the library into /usr/lib/, because we will use it as a shared object. See README in the perl wrapper directory (kstars/kstars/data/tools/HTMesh-*) for more details.
0052 #set_property(TARGET htmesh PROPERTY POSITION_INDEPENDENT_CODE YES)
0053