Commit Graph

5 Commits

Author SHA1 Message Date
wangyixue 5fe7575c52 fix: find_dependency error
Older version CMake find_dependency has a defeat that COMPONENTS
find will fail. Find single dependency separately to avoid this issue.

Log: fix find_dependency error
2023-02-17 11:24:51 +08:00
wangyixue d6b55d4121 refactor(cmake): improve cmake and add new feature
* remove redundant "dtkwidget" in include directory;
 * improve cmake, modify some variable names, use file() to collect
 source files for scalability;
 * add full target_link_libraries support.

Log: add full target_link_libraries support
Influence: all projects who include headers directly by path
2023-01-18 11:22:46 +08:00
wangyixue d27630f171 chore: fix linking error
Fix DtkWidget_LIBRARIES to find_library installed.

Log: fix linking error
2022-12-07 10:02:15 +08:00
rewine deaa98cc55 feat: Improve version information
1. 使用 CMakePackageConfigHelpers 生成 Config.cmake
2. 提供 DtkWidgetConfigVersion.cmake 供调用者检查版本
3. 使用 GNUInstallDir 提供的 FULL 版本变量配置 pkg-config 路径
4. 补充 pkg-config -L 参数
5. 增加引入 dtkcore 版本检查
2022-09-30 10:21:05 +08:00
chenhongtao f80f48076e feat(cmake): to cmake
from qmake to cmake

Log: tocmake
2022-08-19 17:18:33 +08:00