1 if( NOT HAS_GETOPT ) 2 add_subdirectory (getopt) 3 endif( NOT HAS_GETOPT ) 4 5 add_subdirectory (pfs) 6 add_subdirectory (fileformat) 7 add_subdirectory (filter) 8 9 if( ImageMagick_FOUND ) 10 add_subdirectory (hdrhtml) 11 endif( ImageMagick_FOUND ) 12 13 if( Qt5Widgets_FOUND ) 14 add_subdirectory (pfsview) 15 else( Qt5Widgets_FOUND ) 16 # When pre-compiled pfsview is installed on Windows 17 find_program( PFSVIEW pfsview ) 18 if( PFSVIEW ) 19 message( "Found (precompiled) pfsview. pfsv script will be installed." ) 20 # Replace the tag with the path to bash 21 file(READ ${CMAKE_CURRENT_SOURCE_DIR}/pfsview/pfsv.in file_content) 22 string(REGEX REPLACE "@BASH_PATH@" "${BASH_EXECUTABLE}" file_content "${file_content}") 23 file(WRITE "${CMAKE_CURRENT_BINARY_DIR}/pfsview/pfsv" "${file_content}") 24 25 install (FILES "${CMAKE_CURRENT_BINARY_DIR}/pfsview/pfsv" 26 PERMISSIONS OWNER_EXECUTE GROUP_EXECUTE WORLD_EXECUTE OWNER_WRITE WORLD_READ GROUP_READ OWNER_READ 27 DESTINATION bin) 28 endif( PFSVIEW ) 29 endif( Qt5Widgets_FOUND ) 30 31 if( MATLAB_FOUND ) 32 add_subdirectory (matlab) 33 endif( MATLAB_FOUND ) 34 35 if( OPENGL_FOUND AND GLUT_FOUND ) 36 add_subdirectory (pfsglview) 37 endif( OPENGL_FOUND AND GLUT_FOUND ) 38 39 if( WITH_HDRVC ) 40 add_subdirectory (hdrvc) 41 endif( WITH_HDRVC ) 42 43 if( MKOCTFILE ) 44 add_subdirectory (octave) 45 endif( MKOCTFILE ) 46 47 add_subdirectory (tmo) 48 add_subdirectory (camera)