2012-05-02 19:30:49 +04:00
|
|
|
project( grive )
|
|
|
|
|
2012-06-14 20:04:17 +04:00
|
|
|
find_package(Boost COMPONENTS program_options REQUIRED)
|
|
|
|
|
2012-05-02 19:30:49 +04:00
|
|
|
include_directories(
|
|
|
|
${grive_SOURCE_DIR}/../libgrive/src
|
|
|
|
${OPT_INCS}
|
2015-05-31 22:35:15 +03:00
|
|
|
${Boost_INCLUDE_DIRS}
|
2012-05-02 19:30:49 +04:00
|
|
|
)
|
2012-05-01 19:24:27 +04:00
|
|
|
|
2012-05-15 19:07:03 +04:00
|
|
|
file (GLOB GRIVE_EXE_SRC
|
2015-05-31 22:35:15 +03:00
|
|
|
${grive_SOURCE_DIR}/src/*.cc
|
2012-05-15 19:07:03 +04:00
|
|
|
)
|
|
|
|
|
2012-05-01 19:24:27 +04:00
|
|
|
add_executable( grive_executable
|
2012-05-15 19:07:03 +04:00
|
|
|
${GRIVE_EXE_SRC}
|
2012-05-01 19:24:27 +04:00
|
|
|
)
|
|
|
|
|
|
|
|
target_link_libraries( grive_executable
|
2012-06-14 20:04:17 +04:00
|
|
|
${Boost_LIBRARIES}
|
2015-05-31 22:35:15 +03:00
|
|
|
grive
|
2012-05-01 19:24:27 +04:00
|
|
|
)
|
|
|
|
|
|
|
|
set_target_properties( grive_executable
|
2015-05-31 22:35:15 +03:00
|
|
|
PROPERTIES OUTPUT_NAME grive
|
2012-05-01 19:24:27 +04:00
|
|
|
)
|
|
|
|
|
2012-05-02 19:30:49 +04:00
|
|
|
install(TARGETS grive_executable RUNTIME DESTINATION bin)
|
2012-06-20 18:57:23 +04:00
|
|
|
install(FILES doc/grive.1 DESTINATION share/man/man1 )
|