Dennis:
OpenMesh cmake support git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@111 fdac6126-5c0c-442c-9429-916003d36597
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
include (common)
|
||||
include (ACGCommon)
|
||||
|
||||
include_directories (
|
||||
../..
|
||||
@@ -21,20 +21,14 @@ set (directories
|
||||
)
|
||||
|
||||
# collect all header and source files
|
||||
append_files (headers "*.hh" ${directories})
|
||||
append_files (sources "*.cc" ${directories})
|
||||
acg_append_files (headers "*.hh" ${directories})
|
||||
acg_append_files (sources "*.cc" ${directories})
|
||||
|
||||
if (WIN32)
|
||||
# OpenMesh has no dll exports so we have to build a static library on windows
|
||||
add_library (OpenMeshCore STATIC ${sources} ${headers})
|
||||
acg_add_library (OpenMeshCore STATIC ${sources} ${headers})
|
||||
else ()
|
||||
add_library (OpenMeshCore SHARED ${sources} ${headers})
|
||||
# no install on mac, because the whole bundle will be installed in the
|
||||
# toplevel CMakeLists.txt
|
||||
if (NOT APPLE)
|
||||
install (TARGETS OpenMeshCore DESTINATION ${OPENFLIPPER_LIBDIR})
|
||||
endif ()
|
||||
acg_add_library (OpenMeshCore SHARED ${sources} ${headers})
|
||||
endif ()
|
||||
|
||||
# set common target properties defined in common.cmake
|
||||
set_target_props (OpenMeshCore)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user