--- ray/src/util/CMakeLists.txt 2019/07/19 22:25:03 1.32 +++ ray/src/util/CMakeLists.txt 2021/10/18 16:20:21 1.42 @@ -34,6 +34,9 @@ target_link_libraries(vwrays rtrad) add_executable(vwright vwright.c) target_link_libraries(vwright rtrad) +add_executable(dcglare dcglare.c cmbsdf.c cmatrix.c cmglare.c) +target_link_libraries(dcglare rtrad) + #the next few libraries all need to include header files from the rt directory include_directories("${CMAKE_CURRENT_SOURCE_DIR}/../rt") @@ -62,18 +65,18 @@ add_executable(rfluxmtx rfluxmtx.c) target_link_libraries(rfluxmtx rtrad) add_executable(evalglare evalglare.c pictool.c) -target_link_libraries(evalglare rtrad libreetz) +target_link_libraries(evalglare rtrad reetz) add_executable(radcompare radcompare.c) target_link_libraries(radcompare rtrad) -add_executable(rcode_depth rcode_depth.c depthcodec.c) +add_executable(rcode_depth rcode_depth.c) target_link_libraries(rcode_depth rtrad) -add_executable(rcode_norm rcode_norm.c normcodec.c) +add_executable(rcode_norm rcode_norm.c) target_link_libraries(rcode_norm rtrad) -add executable(rcode_ident rcode_ident.c idmap.c) +add_executable(rcode_ident rcode_ident.c) target_link_libraries(rcode_ident rtrad) if(X11_FOUND) @@ -126,6 +129,7 @@ if(UNIX) endif() install(TARGETS + dcglare dctimestep eplus_adduvf evalglare @@ -136,6 +140,9 @@ install(TARGETS radcompare ranimate ranimove + rcode_depth + rcode_ident + rcode_norm rcollate rfluxmtx rmtxop @@ -162,15 +169,51 @@ file(COPY ) if(WIN32) + add_custom_target(bsdfview ALL + COMMAND pp ${CMAKE_CURRENT_SOURCE_DIR}/bsdfview.pl -o ${CMAKE_CURRENT_SOURCE_DIR}/bsdfview.exe -d + ) + add_custom_target(genBSDF ALL + COMMAND pp ${CMAKE_CURRENT_SOURCE_DIR}/genBSDF.pl -o ${CMAKE_CURRENT_SOURCE_DIR}/genBSDF.exe -d + ) + add_custom_target(genklemsamp ALL + COMMAND pp ${CMAKE_CURRENT_SOURCE_DIR}/genklemsamp.pl -o ${CMAKE_CURRENT_SOURCE_DIR}/genklemsamp.exe -d + ) + add_custom_target(genskyvec ALL + COMMAND pp ${CMAKE_CURRENT_SOURCE_DIR}/genskyvec.pl -o ${CMAKE_CURRENT_SOURCE_DIR}/genskyvec.exe -d + ) + add_custom_target(ltpict ALL + COMMAND pp ${CMAKE_CURRENT_SOURCE_DIR}/ltpict.pl -o ${CMAKE_CURRENT_SOURCE_DIR}/ltpict.exe -d + ) + add_custom_target(ltview ALL + COMMAND pp ${CMAKE_CURRENT_SOURCE_DIR}/ltview.pl -o ${CMAKE_CURRENT_SOURCE_DIR}/ltview.exe -d + ) + add_custom_target(objpict ALL + COMMAND pp ${CMAKE_CURRENT_SOURCE_DIR}/objpict.pl -o ${CMAKE_CURRENT_SOURCE_DIR}/objpict.exe -d + ) + add_custom_target(objview ALL + COMMAND pp ${CMAKE_CURRENT_SOURCE_DIR}/objview.pl -o ${CMAKE_CURRENT_SOURCE_DIR}/objview.exe -d + ) + add_custom_target(genambpos ALL + COMMAND pp ${CMAKE_CURRENT_SOURCE_DIR}/genambpos.pl -o ${CMAKE_CURRENT_SOURCE_DIR}/genambpos.exe -d + ) + add_custom_target(rcode2bmp ALL + COMMAND pp ${CMAKE_CURRENT_SOURCE_DIR}/rcode2bmp.pl -o ${CMAKE_CURRENT_SOURCE_DIR}/rcode2bmp.exe -d + ) + add_custom_target(rtpict ALL + COMMAND pp ${CMAKE_CURRENT_SOURCE_DIR}/rtpict.pl -o ${CMAKE_CURRENT_SOURCE_DIR}/rtpict.exe -d + ) install(PROGRAMS - bsdfview.pl - genBSDF.pl - genklemsamp.pl - genskyvec.pl - ltpict.pl - ltview.pl - objpict.pl - objview.pl + bsdfview.exe + genBSDF.exe + genklemsamp.exe + genskyvec.exe + ltpict.exe + ltview.exe + objpict.exe + objview.exe + genambpos.exe + rcode2bmp.exe + rtpict.exe DESTINATION "bin" ) else() @@ -180,7 +223,7 @@ else() dayfact.csh fieldcomb.csh genBSDF.pl - genambpos.csh + genambpos.pl genklemsamp.pl genskyvec.pl glare.csh @@ -190,9 +233,17 @@ else() objpict.pl objview.pl raddepend.csh + rcode2bmp.pl rlux.csh rtpict.pl - trad.wsh vinfo.csh + ) + add_custom_target(trad ALL + COMMAND csh -f ${CMAKE_CURRENT_SOURCE_DIR}/tradinstall.csh ../../build/bin ../../build/lib + ) + install(FILES + ${CMAKE_BINARY_DIR}/bin/trad + DESTINATION "bin" + PERMISSIONS OWNER_EXECUTE OWNER_WRITE OWNER_READ GROUP_EXECUTE GROUP_READ ) endif()