add_library(llx-apt-common OBJECT Sources.cpp Cache.cpp Commands.cpp) add_executable(llx-apt-cmd cli.cpp $) set_source_files_properties(gresources.c PROPERTIES GENERATED TRUE) add_executable(lliurex-apt gui.cpp gresources.c Graphics.cpp $) add_executable(llx-apt-backend Backend.cpp) find_package(PkgConfig REQUIRED) pkg_check_modules(GLIBMM REQUIRED glibmm-2.4) pkg_check_modules(GIOMM REQUIRED giomm-2.4) pkg_check_modules(GTKMM REQUIRED gtkmm-3.0) target_link_libraries(llx-apt-cmd ${GLIBMM_LIBRARIES} ${GIOMM_LIBRARIES}) target_link_libraries(lliurex-apt ${GLIBMM_LIBRARIES} ${GIOMM_LIBRARIES} ${GTKMM_LIBRARIES}) target_link_libraries(llx-apt-backend ${GLIBMM_LIBRARIES} ${GIOMM_LIBRARIES} ) include_directories(${GLIBMM_INCLUDE_DIRS} ${GIOMM_INCLUDE_DIRS} ${GTKMM_INCLUDE_DIRS}) add_definitions(-std=c++11 -g -O2) #add_custom_command(TARGET lliurex-apt POST_BUILD COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_SOURCE_DIR}/rsrc/interface.glade $) install(TARGETS llx-apt-cmd RUNTIME DESTINATION bin) install(TARGETS lliurex-apt RUNTIME DESTINATION bin) install(TARGETS llx-apt-backend RUNTIME DESTINATION bin)