snap-standard-paths/CMakeLists.txt
raw| 1 | project(snap-standard-paths LANGUAGES CXX) |
| 2 | |
| 3 | include(GNUInstallDirs) |
| 4 | |
| 5 | find_package(Qt5Core REQUIRED) |
| 6 | |
| 7 | list(APPEND SSP_HEADERS |
| 8 | SnapStandardPaths.h |
| 9 | ) |
| 10 | |
| 11 | list(APPEND SSP_SRCS |
| 12 | SnapStandardPaths.cpp |
| 13 | ) |
| 14 | |
| 15 | add_library(snap-standard-paths STATIC ${SSP_SRCS}) |
| 16 | |
| 17 | target_include_directories(snap-standard-paths |
| 18 | PUBLIC |
| 19 | ${CMAKE_CURRENT_SOURCE_DIR} |
| 20 | ) |
| 21 | |
| 22 | target_link_libraries(snap-standard-paths |
| 23 | PUBLIC |
| 24 | Qt5::Core |
| 25 | ) |