| 1 |
set(TARGET_NAME deepin-os-release) |
| 2 |
set(BIN_NAME ${TARGET_NAME}${DTK_VERSION_MAJOR}) |
| 3 |
|
| 4 |
set(CMAKE_EXPORT_COMPILE_COMMANDS ON) |
| 5 |
set(CMAKE_AUTOMOC ON) |
| 6 |
find_package(Qt${QT_VERSION_MAJOR} REQUIRED COMPONENTS Core) |
| 7 |
add_definitions(-DDTK_NO_PROJECT) |
| 8 |
# start dci |
| 9 |
set(dci_SRCS |
| 10 |
../../include/global/dsysinfo.h |
| 11 |
../../include/global/ddesktopentry.h |
| 12 |
../../src/dsysinfo.cpp |
| 13 |
../../src/ddesktopentry.cpp |
| 14 |
) |
| 15 |
add_executable(${BIN_NAME} |
| 16 |
${dci_SRCS} |
| 17 |
main.cpp |
| 18 |
) |
| 19 |
|
| 20 |
target_compile_definitions(${BIN_NAME} PUBLIC |
| 21 |
DSYSINFO_PREFIX="${DSYSINFO_PREFIX}") |
| 22 |
|
| 23 |
target_link_libraries(${BIN_NAME} PRIVATE |
| 24 |
Qt${QT_VERSION_MAJOR}::Core |
| 25 |
Qt${QT_VERSION_MAJOR}::CorePrivate |
| 26 |
) |
| 27 |
target_include_directories(${BIN_NAME} PUBLIC |
| 28 |
../../include/ |
| 29 |
../../include/dci/ |
| 30 |
../../include/DtkCore/ |
| 31 |
../../include/base/ |
| 32 |
../../include/global/ |
| 33 |
) |
| 34 |
set_target_properties(${BIN_NAME} PROPERTIES OUTPUT_NAME ${TARGET_NAME}) |
| 35 |
install(TARGETS ${BIN_NAME} DESTINATION "${TOOL_INSTALL_DIR}") |
| 36 |
|
| 37 |
#end dci |