--- ray/src/gen/CMakeLists.txt 2021/09/12 16:41:32 2.10 +++ ray/src/gen/CMakeLists.txt 2025/02/26 20:39:28 2.15 @@ -1,3 +1,8 @@ +# Locate the threads package +set(CMAKE_THREAD_PREFER_PTHREAD TRUE) +set(THREADS_PREFER_PTHREAD_FLAG TRUE) +find_package(Threads REQUIRED) + include_directories(${CMAKE_CURRENT_SOURCE_DIR}/../rt) add_executable(genbeads genbeads.c hermite3.c) @@ -12,10 +17,16 @@ target_link_libraries(genmarble ${LIB_M}) add_executable(gensky gensky.c sun.c) target_link_libraries(gensky rtrad ${LIB_M}) +add_executable(genssky genssky.c sun.c atmos.c) +target_link_libraries(genssky rtrad ${LIB_M} Threads::Threads) + +add_executable(gensdaymtx gensdaymtx.c sun.c atmos.c) +target_link_libraries(gensdaymtx rtrad ${LIB_M} Threads::Threads) + add_executable(gendaylit gendaylit.c sun.c) target_link_libraries(gendaylit rtrad ${LIB_M}) -add_executable(gendaymtx gendaymtx.c sun.c) +add_executable(gendaymtx gendaymtx.c sun.c loadEPW.c) target_link_libraries(gendaymtx rtrad ${LIB_M}) add_executable(genblinds genblinds.c) @@ -60,9 +71,11 @@ install(TARGETS genclock gendaylit gendaymtx + gensdaymtx genprism genrev gensky + genssky gensurf genworm mkillum @@ -82,6 +95,7 @@ file(COPY rev.cal skybright.cal surf.cal + mie_ca.dat DESTINATION "${CMAKE_BINARY_DIR}/lib" )