diff options
Diffstat (limited to 'image/CMakeLists.txt')
-rw-r--r-- | image/CMakeLists.txt | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/image/CMakeLists.txt b/image/CMakeLists.txt index 7a0a440..ed6a042 100644 --- a/image/CMakeLists.txt +++ b/image/CMakeLists.txt @@ -1,3 +1,5 @@ +option(BUILD_ISO "Enable ISO backend" ON) + add_subdirectory(backends) set(IMG_SRCS @@ -17,4 +19,6 @@ include_directories(${Boost_INCLUDE_DIR}) target_link_libraries(hscript-image hscript hi-backends ${Boost_LIBRARIES}) install(TARGETS hscript-image DESTINATION bin) install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/creator.1 DESTINATION share/man/man1 RENAME hscript-image.1) -install(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/iso-share/ DESTINATION share/horizon/iso) +if(BUILD_ISO) + install(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/iso-share/ DESTINATION share/horizon/iso) +endif(BUILD_ISO) |