--- ray/src/gen/CMakeLists.txt 2018/01/08 16:51:32 2.5 +++ ray/src/gen/CMakeLists.txt 2024/07/19 23:38:28 2.12 @@ -1,16 +1,26 @@ +# 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) target_link_libraries(genbeads ${LIB_M}) add_executable(genbox genbox.c) +target_link_libraries(genbox wfobj rtrad ${LIB_M}) add_executable(genmarble genmarble.c ../common/random.h) target_link_libraries(genmarble ${LIB_M}) add_executable(gensky gensky.c sun.c) -target_link_libraries(gensky ${LIB_M}) +target_link_libraries(gensky rtrad ${LIB_M}) + +add_executable(genssky genssky.c sun.c atmos.c ../rt/data.c) +target_link_libraries(genssky rtrad ${LIB_M} Threads::Threads) + add_executable(gendaylit gendaylit.c sun.c) target_link_libraries(gendaylit rtrad ${LIB_M}) @@ -18,10 +28,10 @@ add_executable(gendaymtx gendaymtx.c sun.c) target_link_libraries(gendaymtx rtrad ${LIB_M}) add_executable(genblinds genblinds.c) -target_link_libraries(genblinds ${LIB_M}) +target_link_libraries(genblinds rtrad ${LIB_M}) add_executable(genprism genprism.c) -target_link_libraries(genprism ${LIB_M}) +target_link_libraries(genprism rtrad ${LIB_M}) add_executable(xform xform.c) target_link_libraries(xform rtrad) @@ -62,6 +72,7 @@ install(TARGETS genprism genrev gensky + genssky gensurf genworm mkillum @@ -77,9 +88,11 @@ file(COPY glaze2.cal illum.cal perezlum.cal + perezlum_c.cal rev.cal skybright.cal surf.cal + mie_ca.dat DESTINATION "${CMAKE_BINARY_DIR}/lib" )