31 lines
698 B
CMake
31 lines
698 B
CMake
set(BIN_NAME deepin-os-release)
|
|
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
|
|
set(CMAKE_AUTOMOC ON)
|
|
find_package(Qt5 REQUIRED COMPONENTS Core)
|
|
add_definitions(-DDTK_NO_PROJECT)
|
|
# start dci
|
|
set(dci_SRCS
|
|
../../include/global/dsysinfo.h
|
|
../../include/global/ddesktopentry.h
|
|
../../src/dsysinfo.cpp
|
|
../../src/ddesktopentry.cpp
|
|
)
|
|
add_executable(${BIN_NAME}
|
|
${dci_SRCS}
|
|
main.cpp
|
|
)
|
|
target_link_libraries(${BIN_NAME} PRIVATE
|
|
Qt5::Core
|
|
)
|
|
target_include_directories(${BIN_NAME} PUBLIC
|
|
${Qt5Core_PRIVATE_INCLUDE_DIRS}
|
|
../../include/
|
|
../../include/dci/
|
|
../../include/DtkCore/
|
|
../../include/base/
|
|
../../include/global/
|
|
)
|
|
install(TARGETS ${BIN_NAME} DESTINATION "${TOOL_INSTALL_DIR}")
|
|
|
|
#end dci
|