CMExamples/CMakeLists.txt

56 lines
1.6 KiB
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)
target_link_libraries(${project_name} PRIVATE ${HGL_MATH_LIB})
2021-03-07 20:03:51 +08:00
set_debugger_directory(${project_name} ${CMAKE_CURRENT_SOURCE_DIR})
2021-09-07 13:11:34 +08:00
target_sources(${project_name} PRIVATE ${CM_MANIFEST})
2021-03-07 20:03:51 +08:00
ENDIF()
set_property(TARGET ${project_name} PROPERTY FOLDER "CM/Examples")
endmacro()
add_executable(HalfFloatTest HalfFloatTest.cpp)
cm_example_project(HalfFloatTest)
2021-03-07 20:03:51 +08:00
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)
add_executable(FixFilenameTest FixFilenameTest.cpp)
2021-09-07 13:11:34 +08:00
cm_example_project(FixFilenameTest)
IF(WIN32)
add_executable(EnumVolumeTest EnumVolumeTest.cpp)
cm_example_project(EnumVolumeTest)
2022-08-04 21:33:20 +08:00
ENDIF(WIN32)
add_executable(SplitStringTest SplitStringTest.cpp)
cm_example_project(SplitStringTest)
2022-12-30 11:44:13 +08:00
add_executable(CreateBinaryH CreateBinaryH.cpp)
cm_example_project(CreateBinaryH)
add_executable(NormalCompressTest NormalCompressTest.cpp)
CM_EXAMPLE_PROJECT(NormalCompressTest)
2023-06-15 15:29:44 +08:00
add_executable(MultiMapTest MultiMapTest.cpp)
cm_example_project(MultiMapTest)
add_executable(OSFontList OSFontList.cpp)
cm_example_project(OSFontList)
target_link_libraries(OSFontList PRIVATE CMUtil)
2023-06-21 20:01:17 +08:00
add_executable(RuntimeAssetManagerTest RuntimeAssetManagerTest.cpp RuntimeAssetManager.h RAM_TestClass.h RAM_TestClass.cpp)
cm_example_project(RuntimeAssetManagerTest)