irrlicht/examples/CMakeLists.txt

18 lines
409 B
CMake
Raw Normal View History

2021-04-22 09:43:53 +02:00
set(IRREXAMPLES
2021-07-23 16:23:44 +02:00
# removed
2021-04-22 09:43:53 +02:00
)
if(UNIX)
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()