--- ray/src/cv/CMakeLists.txt 2018/01/08 16:51:32 1.14 +++ ray/src/cv/CMakeLists.txt 2022/03/08 19:04:56 1.21 @@ -15,6 +15,9 @@ target_link_libraries(tmesh2rad rtrad) add_executable(obj2rad obj2rad.c trans.c) target_link_libraries(obj2rad rtrad) +add_executable(robjutil robjutil.c) +target_link_libraries(robjutil wfobj rtrad) + add_executable(mgf2rad mgf2rad.c) target_link_libraries(mgf2rad mgf rtrad) @@ -57,6 +60,9 @@ target_link_libraries(bsdf2klems rtrad) add_executable(pkgBSDF pkgBSDF.c trans.c) target_link_libraries(pkgBSDF rtrad) +add_executable(checkBSDF checkBSDF.c) +target_link_libraries(checkBSDF rtrad) + add_executable(epw2wea epw2wea.c) include_directories(${CMAKE_CURRENT_SOURCE_DIR}/../meta) @@ -66,7 +72,9 @@ target_link_libraries(mgf2meta mgf meta rtrad) install(TARGETS 3ds2mgf bsdf2klems + bsdf2rad bsdf2ttree + checkBSDF epw2wea ies2rad lampcolor @@ -78,6 +86,7 @@ install(TARGETS obj2rad pkgBSDF rad2mgf + robjutil tmesh2rad RUNTIME DESTINATION "bin" ) @@ -91,10 +100,20 @@ file(COPY DESTINATION "${CMAKE_BINARY_DIR}/lib" ) -if(NOT WIN32) - install(PROGRAMS optics2rad.csh +if(WIN32) + add_custom_target(optics2rad ALL + COMMAND pp ${CMAKE_CURRENT_SOURCE_DIR}/optics2rad.pl -o ${CMAKE_CURRENT_SOURCE_DIR}/optics2rad.exe -d + ) + add_custom_target(iso2klems ALL + COMMAND pp ${CMAKE_CURRENT_SOURCE_DIR}/iso2klems.pl -o ${CMAKE_CURRENT_SOURCE_DIR}/iso2klems.exe -d + ) + install(PROGRAMS optics2rad.exe iso2klems.exe DESTINATION "bin" - RENAME optics2rad + ) +else() + install_without_extension( + optics2rad.pl + iso2klems.pl ) endif()