irrlicht/examples/CMakeLists.txt

22 lines
486 B
CMake
Raw Permalink Normal View History

2023-06-12 18:52:23 +02:00
set(CMAKE_CXX_STANDARD 17)
2022-05-07 11:21:41 +02:00
set(CMAKE_CXX_STANDARD_REQUIRED ON)
2021-04-22 09:43:53 +02:00
set(IRREXAMPLES
2023-09-17 23:40:31 +02:00
LoadTexture
2023-09-18 17:13:32 +02:00
LoadMesh
2021-04-22 09:43:53 +02:00
)
2023-09-17 23:40:31 +02:00
if(FALSE)
list(APPEND IRREXAMPLES AutomatedTest)
endif()
2021-04-22 09:43:53 +02:00
foreach(exname IN ITEMS ${IRREXAMPLES})
file(GLOB sources "${CMAKE_CURRENT_SOURCE_DIR}/${exname}/*.cpp")
add_executable(${exname} ${sources})
target_include_directories(${exname} PRIVATE
${CMAKE_SOURCE_DIR}/include
${CMAKE_CURRENT_SOURCE_DIR}/${exname}
)
target_link_libraries(${exname} IrrlichtMt)
endforeach()