source: lliurex-apt/trunk/fuentes/src/CMakeLists.txt @ 923

Last change on this file since 923 was 923, checked in by mabarracus, 3 years ago

Imported trusty code

File size: 1.2 KB
Line 
1
2
3add_library(llx-apt-common OBJECT Sources.cpp Cache.cpp Commands.cpp)
4add_executable(llx-apt-cmd cli.cpp $<TARGET_OBJECTS:llx-apt-common>)
5
6set_source_files_properties(gresources.c PROPERTIES GENERATED TRUE)
7add_executable(lliurex-apt gui.cpp gresources.c Graphics.cpp $<TARGET_OBJECTS:llx-apt-common>)
8add_executable(llx-apt-backend Backend.cpp)
9
10find_package(PkgConfig REQUIRED)
11pkg_check_modules(GLIBMM REQUIRED glibmm-2.4)
12pkg_check_modules(GIOMM REQUIRED giomm-2.4)
13pkg_check_modules(GTKMM REQUIRED gtkmm-3.0)
14
15target_link_libraries(llx-apt-cmd ${GLIBMM_LIBRARIES} ${GIOMM_LIBRARIES})
16target_link_libraries(lliurex-apt ${GLIBMM_LIBRARIES} ${GIOMM_LIBRARIES} ${GTKMM_LIBRARIES})
17target_link_libraries(llx-apt-backend ${GLIBMM_LIBRARIES} ${GIOMM_LIBRARIES} )
18
19include_directories(${GLIBMM_INCLUDE_DIRS} ${GIOMM_INCLUDE_DIRS} ${GTKMM_INCLUDE_DIRS})
20
21add_definitions(-std=c++11 -g -O2)
22
23#add_custom_command(TARGET lliurex-apt POST_BUILD COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_SOURCE_DIR}/rsrc/interface.glade $<TARGET_FILE_DIR:lliurex-apt>)
24
25
26install(TARGETS llx-apt-cmd RUNTIME DESTINATION bin)
27install(TARGETS lliurex-apt RUNTIME DESTINATION bin)
28install(TARGETS llx-apt-backend RUNTIME DESTINATION bin)
29
30
Note: See TracBrowser for help on using the repository browser.