mirror of
https://github.com/maxDcb/C2Core
synced 2026-06-08 15:48:01 +00:00
9 lines
562 B
CMake
9 lines
562 B
CMake
include_directories(../)
|
|
add_library(WmiExec SHARED ../ModuleCmd/ModuleCmd.cpp WmiExec.cpp)
|
|
add_custom_command(TARGET WmiExec POST_BUILD COMMAND ${CMAKE_COMMAND} -E copy
|
|
$<TARGET_FILE:WmiExec> "${CMAKE_SOURCE_DIR}/Release/Modules/$<TARGET_FILE_NAME:WmiExec>")
|
|
|
|
add_executable(testsWmiExec tests/testsWmiExec.cpp ../ModuleCmd/ModuleCmd.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>") |