mirror of
https://github.com/maxDcb/C2Core
synced 2026-06-08 15:48:01 +00:00
15 lines
757 B
CMake
15 lines
757 B
CMake
include_directories(../)
|
|
add_library(WmiExec SHARED WmiExec.cpp)
|
|
set_property(TARGET WmiExec PROPERTY MSVC_RUNTIME_LIBRARY "MultiThreaded")
|
|
target_link_libraries(WmiExec )
|
|
add_custom_command(TARGET WmiExec POST_BUILD COMMAND ${CMAKE_COMMAND} -E copy
|
|
$<TARGET_FILE:WmiExec> "${CMAKE_SOURCE_DIR}/Release/Modules/$<TARGET_FILE_NAME:WmiExec>")
|
|
|
|
if(WITH_TESTS)
|
|
add_executable(testsWmiExec tests/testsWmiExec.cpp WmiExec.cpp)
|
|
target_link_libraries(testsWmiExec )
|
|
add_custom_command(TARGET testsWmiExec POST_BUILD COMMAND ${CMAKE_COMMAND} -E copy
|
|
$<TARGET_FILE:testsWmiExec> "${CMAKE_SOURCE_DIR}/Tests/$<TARGET_FILE_NAME:testsWmiExec>")
|
|
|
|
add_test(NAME testsWmiExec COMMAND "${CMAKE_SOURCE_DIR}/Tests/$<TARGET_FILE_NAME:testsWmiExec>")
|
|
endif() |