CMakeLists.txt 409 B

1234567891011121314151617
  1. set(IRREXAMPLES
  2. # removed
  3. )
  4. if(UNIX)
  5. list(APPEND IRREXAMPLES AutomatedTest)
  6. endif()
  7. foreach(exname IN ITEMS ${IRREXAMPLES})
  8. file(GLOB sources "${CMAKE_CURRENT_SOURCE_DIR}/${exname}/*.cpp")
  9. add_executable(${exname} ${sources})
  10. target_include_directories(${exname} PRIVATE
  11. ${CMAKE_SOURCE_DIR}/include
  12. ${CMAKE_CURRENT_SOURCE_DIR}/${exname}
  13. )
  14. target_link_libraries(${exname} IrrlichtMt)
  15. endforeach()