Update targets for complete installation.

This commit is contained in:
2018-04-06 13:19:27 +02:00
parent 52a5493c6e
commit e54082c96a

View File

@@ -39,17 +39,17 @@ target_include_directories(fmri PUBLIC
${Caffe_INCLUDE_DIRS} ${Caffe_INCLUDE_DIRS}
${OpenCV_INCLUDE_DIRS}) ${OpenCV_INCLUDE_DIRS})
# Allow the package to be installed
install(TARGETS fmri DESTINATION bin)
# Build instructions for the deinplace tool # Build instructions for the deinplace tool
find_package(Protobuf REQUIRED) find_package(Protobuf REQUIRED)
add_executable(deinplace "src/tools/deinplace.cpp") add_executable(fmri-deinplace "src/tools/deinplace.cpp")
target_compile_options(deinplace PRIVATE "-Wall" "-Wextra" "-pedantic") target_compile_options(fmri-deinplace PRIVATE "-Wall" "-Wextra" "-pedantic")
target_link_libraries(deinplace Caffe::Caffe protobuf::libprotobuf) target_link_libraries(fmri-deinplace Caffe::Caffe protobuf::libprotobuf)
# Build isntructions for the launcher tool # Build isntructions for the launcher tool
find_package(GTK3 REQUIRED COMPONENTS gtk gtkmm) find_package(GTK3 REQUIRED COMPONENTS gtk gtkmm)
add_executable(fmri-launcher src/tools/launcher.cpp) add_executable(fmri-launcher src/tools/launcher.cpp)
target_compile_options(fmri-launcher PRIVATE "-Wall" "-Wextra" "-pedantic") target_compile_options(fmri-launcher PRIVATE "-Wall" "-Wextra" "-pedantic")
target_link_libraries(fmri-launcher GTK3::gtkmm Boost::filesystem GTK3::gtk) target_link_libraries(fmri-launcher GTK3::gtkmm Boost::filesystem GTK3::gtk)
# Allow the package to be installed
install(TARGETS fmri fmri-deinplace fmri-launcher DESTINATION bin)