CMExamples/CMakeLists.txt

22 lines
540 B
CMake
Raw Normal View History

2021-03-07 20:03:51 +08:00
macro(cm_example_project project_name)
target_link_libraries(${project_name} PRIVATE CMCore CMPlatform)
if(UNIX)
target_link_libraries(${project_name} PRIVATE dl)
endif()
IF(WIN32)
set_debugger_directory(${project_name} ${CMAKE_CURRENT_SOURCE_DIR})
ENDIF()
set_property(TARGET ${project_name} PROPERTY FOLDER "CM/Examples")
endmacro()
2020-08-19 12:01:06 +08:00
add_executable(GetCpuInfo GetCpuInfo.cpp)
2021-03-07 20:03:51 +08:00
cm_example_project(GetCpuInfo)
2020-08-19 12:01:06 +08:00
2021-03-07 20:03:51 +08:00
add_executable(CollectionTest CollectionTest.cpp)
cm_example_project(CollectionTest)