Files
2026-04-20 19:52:10 +02:00

15 lines
783 B
CMake

include_directories(../)
add_library(IpConfig SHARED IpConfig.cpp)
set_property(TARGET IpConfig PROPERTY MSVC_RUNTIME_LIBRARY "MultiThreaded")
target_link_libraries(IpConfig )
add_custom_command(TARGET IpConfig POST_BUILD COMMAND ${CMAKE_COMMAND} -E copy
$<TARGET_FILE:IpConfig> "${C2_RUNTIME_MODULE_OUTPUT_DIR}/$<TARGET_FILE_NAME:IpConfig>")
if(C2CORE_BUILD_TESTS)
add_executable(testsIpConfig tests/testsIpConfig.cpp IpConfig.cpp)
target_link_libraries(testsIpConfig )
add_custom_command(TARGET testsIpConfig POST_BUILD COMMAND ${CMAKE_COMMAND} -E copy
$<TARGET_FILE:testsIpConfig> "${C2_TEST_BIN_OUTPUT_DIR}/$<TARGET_FILE_NAME:testsIpConfig>")
add_test(NAME testsIpConfig COMMAND "${C2_TEST_BIN_OUTPUT_DIR}/$<TARGET_FILE_NAME:testsIpConfig>")
endif()