Commit 76c49c64 authored by Jan Möbius's avatar Jan Möbius

Fixed missing getopt under windows with cmake

git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@143 fdac6126-5c0c-442c-9429-916003d36597
parent 565880b9
include (ACGCommon) include (ACGCommon)
include_directories ( include_directories (
../.. ../..
${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}
) )
# source code directories # source code directories
set (directories set (directories
. .
Geometry Geometry
IO IO
IO/exporter IO/exporter
IO/importer IO/importer
IO/reader IO/reader
IO/writer IO/writer
Mesh Mesh
Mesh/gen Mesh/gen
System System
Utils Utils
) )
# collect all header and source files # collect all header and source files
acg_append_files (headers "*.hh" ${directories}) acg_append_files (headers "*.hh" ${directories})
acg_append_files (sources "*.cc" ${directories}) acg_append_files (sources "*.cc" ${directories})
IF(WIN32) if (WIN32)
acg_append_files (sources "*.c" ${directories}) # OpenMesh has no dll exports so we have to build a static library on windows
ENDIF(WIN32) acg_add_library (OpenMeshCore STATIC ${sources} ${headers})
else ()
if (WIN32) acg_add_library (OpenMeshCore SHARED ${sources} ${headers})
# OpenMesh has no dll exports so we have to build a static library on windows endif ()
acg_add_library (OpenMeshCore STATIC ${sources} ${headers})
else ()
acg_add_library (OpenMeshCore SHARED ${sources} ${headers})
endif ()
include (ACGCommon) include (ACGCommon)
include_directories ( include_directories (
../.. ../..
${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}
) )
# source code directories # source code directories
set (directories set (directories
. .
Decimater Decimater
Smoother Smoother
Subdivider/Adaptive/Composite Subdivider/Adaptive/Composite
Subdivider/Uniform/Composite Subdivider/Uniform/Composite
Subdivider/Uniform Subdivider/Uniform
Utils Utils
) )
# collect all header and source files # collect all header and source files
acg_append_files (headers "*.hh" ${directories}) acg_append_files (headers "*.hh" ${directories})
acg_append_files (sources "*.cc" ${directories}) acg_append_files (sources "*.cc" ${directories})
if (WIN32) IF(WIN32)
# OpenMesh has no dll exports so we have to build a static library on windows acg_append_files (sources "*.c" ${directories})
acg_add_library (OpenMeshTools STATIC ${sources} ${headers}) ENDIF(WIN32)
else ()
acg_add_library (OpenMeshTools SHARED ${sources} ${headers}) if (WIN32)
endif () # OpenMesh has no dll exports so we have to build a static library on windows
acg_add_library (OpenMeshTools STATIC ${sources} ${headers})
target_link_libraries (OpenMeshTools OpenMeshCore) else ()
acg_add_library (OpenMeshTools SHARED ${sources} ${headers})
endif ()
target_link_libraries (OpenMeshTools OpenMeshCore)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment