mirror of https://github.com/mosra/magnum.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
746 B
26 lines
746 B
set(MagnumMeshTools_SRCS |
|
FlipNormals.cpp |
|
GenerateFlatNormals.cpp |
|
Tipsify.cpp |
|
) |
|
|
|
add_library(MagnumMeshTools SHARED ${MagnumMeshTools_SRCS}) |
|
|
|
if(WIN32) |
|
set_target_properties(MagnumMeshTools PROPERTIES COMPILE_FLAGS -DMESHTOOLS_EXPORTING) |
|
endif() |
|
|
|
target_link_libraries(MagnumMeshTools Magnum) |
|
|
|
install(TARGETS MagnumMeshTools DESTINATION ${MAGNUM_LIBRARY_INSTALL_DIR}) |
|
|
|
if(BUILD_TESTS) |
|
enable_testing() |
|
|
|
# Library with graceful assert for testing |
|
add_library(MagnumMeshToolsTestLib SHARED ${MagnumMeshTools_SRCS}) |
|
set_target_properties(MagnumMeshToolsTestLib PROPERTIES COMPILE_FLAGS -DCORRADE_GRACEFUL_ASSERT) |
|
target_link_libraries(MagnumMeshToolsTestLib ${MAGNUM_LIBRARY}) |
|
|
|
add_subdirectory(Test) |
|
endif()
|
|
|