Files
maxDcb-C2Core/modules/Tree/CMakeLists.txt
T
2025-01-07 03:28:56 -05:00

15 lines
709 B
CMake

include_directories(../)
add_library(Tree SHARED Tree.cpp)
set_property(TARGET Tree PROPERTY MSVC_RUNTIME_LIBRARY "MultiThreaded")
target_link_libraries(Tree )
add_custom_command(TARGET Tree POST_BUILD COMMAND ${CMAKE_COMMAND} -E copy
$<TARGET_FILE:Tree> "${CMAKE_SOURCE_DIR}/Release/Modules/$<TARGET_FILE_NAME:Tree>")
if(WITH_TESTS)
add_executable(testsTree tests/testsTree.cpp Tree.cpp)
target_link_libraries(testsTree )
add_custom_command(TARGET testsTree POST_BUILD COMMAND ${CMAKE_COMMAND} -E copy
$<TARGET_FILE:testsTree> "${CMAKE_SOURCE_DIR}/Tests/$<TARGET_FILE_NAME:testsTree>")
add_test(NAME testsTree COMMAND "${CMAKE_SOURCE_DIR}/Tests/$<TARGET_FILE_NAME:testsTree>")
endif()