Commit 5f36544d authored by Jan Möbius's avatar Jan Möbius
Browse files

Build OpenMesh static under windows but shared on other platforms

git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@93 fdac6126-5c0c-442c-9429-916003d36597
parent 984b2f52
...@@ -22,6 +22,10 @@ set (directories ...@@ -22,6 +22,10 @@ set (directories
append_files (headers "*.hh" ${directories}) append_files (headers "*.hh" ${directories})
append_files (sources "*.cc" ${directories}) append_files (sources "*.cc" ${directories})
if (WIN32)
add_library (OpenMeshCore STATIC ${sources} ${headers}) add_library (OpenMeshCore STATIC ${sources} ${headers})
else ()
add_library (OpenMeshCore SHARED ${sources} ${headers})
endif ()
set_target_props (OpenMeshCore) set_target_props (OpenMeshCore)
\ No newline at end of file
...@@ -18,7 +18,12 @@ set (directories ...@@ -18,7 +18,12 @@ set (directories
append_files (headers "*.hh" ${directories}) append_files (headers "*.hh" ${directories})
append_files (sources "*.cc" ${directories}) append_files (sources "*.cc" ${directories})
add_library (OpenMeshTools STATIC ${sources} ${headers}) if (WIN32)
add_library (OpenMeshCore STATIC ${sources} ${headers})
else ()
add_library (OpenMeshCore SHARED ${sources} ${headers})
endif ()
target_link_libraries (OpenMeshTools OpenMeshCore) target_link_libraries (OpenMeshTools OpenMeshCore)
set_target_props (OpenMeshTools) set_target_props (OpenMeshTools)
\ No newline at end of file
Supports Markdown
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