blob: ed6a04236b34df1a09b2e3d12c542a9bd6b81290 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
option(BUILD_ISO "Enable ISO backend" ON)
add_subdirectory(backends)
set(IMG_SRCS
creator.cc
)
add_executable(hscript-image ${IMG_SRCS})
if("cxx_std_17" IN_LIST CMAKE_CXX_COMPILE_FEATURES)
find_package(Boost REQUIRED COMPONENTS program_options)
set_property(TARGET hscript-image PROPERTY CXX_STANDARD 17)
else()
find_package(Boost REQUIRED COMPONENTS filesystem program_options)
endif()
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)
if(BUILD_ISO)
install(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/iso-share/ DESTINATION share/horizon/iso)
endif(BUILD_ISO)
|