CMakeLists.txt 516 B

12345678910111213141516
  1. # To simplify testing, the app is build in two passes,
  2. # First most is build as a library
  3. add_library(rayonnement STATIC math_helper.cpp)
  4. set(RAY_HEADERS include/tuples.h include/math_helper.h)
  5. set(RAY_SOURCES tuples.cpp)
  6. target_include_directories(rayonnement PUBLIC include)
  7. target_sources(rayonnement PRIVATE ${RAY_HEADERS} ${RAY_SOURCES})
  8. # Second we build the main executable
  9. add_executable(dorayme main.cpp)
  10. target_include_directories(rayonnement PUBLIC include)
  11. target_link_libraries(dorayme rayonnement)