-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Synchronize source files from linuxdeepin/dtkcore. Source-pull-request: linuxdeepin/dtkcore#448
- Loading branch information
1 parent
a711231
commit a18ea9d
Showing
4 changed files
with
402 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
set(TARGET_NAME dconfig2cpp) | ||
set(BIN_NAME ${TARGET_NAME}${DTK_VERSION_MAJOR}) | ||
|
||
set(CMAKE_EXPORT_COMPILE_COMMANDS ON) | ||
find_package(Qt${QT_VERSION_MAJOR} REQUIRED COMPONENTS Core) | ||
|
||
add_executable(${BIN_NAME} | ||
main.cpp | ||
) | ||
|
||
target_link_libraries( | ||
${BIN_NAME} PRIVATE | ||
Qt${QT_VERSION_MAJOR}::Core | ||
) | ||
|
||
set_target_properties( | ||
${BIN_NAME} PROPERTIES | ||
OUTPUT_NAME ${TARGET_NAME} | ||
EXPORT_NAME dconfig2cpp | ||
) | ||
|
||
install( | ||
TARGETS ${BIN_NAME} | ||
EXPORT Dtk${DTK_VERSION_MAJOR}ToolsTargets | ||
DESTINATION ${TOOL_INSTALL_DIR} | ||
) |
Oops, something went wrong.