grive2/grive/CMakeLists.txt

30 lines
540 B
CMake
Raw Permalink Normal View History

project( grive )
find_package(Boost COMPONENTS program_options REQUIRED)
include_directories(
${grive_SOURCE_DIR}/../libgrive/src
${OPT_INCS}
2015-05-31 22:35:15 +03:00
${Boost_INCLUDE_DIRS}
)
file (GLOB GRIVE_EXE_SRC
2015-05-31 22:35:15 +03:00
${grive_SOURCE_DIR}/src/*.cc
)
add_executable( grive_executable
${GRIVE_EXE_SRC}
)
target_link_libraries( grive_executable
${Boost_LIBRARIES}
2015-05-31 22:35:15 +03:00
grive
)
set_target_properties( grive_executable
2015-05-31 22:35:15 +03:00
PROPERTIES OUTPUT_NAME grive
)
install(TARGETS grive_executable RUNTIME DESTINATION bin)
install(FILES doc/grive.1 DESTINATION share/man/man1 )