From ff468e59b331c07aec7327600cb46af1800ac9e0 Mon Sep 17 00:00:00 2001 From: Martin Delille Date: Thu, 26 Jan 2023 15:18:41 +0100 Subject: [PATCH] Replace ${PROJECT_NAME} --- QtAwesome/CMakeLists.txt | 6 +++--- QtAwesomeSample/CMakeLists.txt | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/QtAwesome/CMakeLists.txt b/QtAwesome/CMakeLists.txt index 4be65d3..edfc4a7 100644 --- a/QtAwesome/CMakeLists.txt +++ b/QtAwesome/CMakeLists.txt @@ -2,16 +2,16 @@ project(QtAwesome) set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON) -add_library(${PROJECT_NAME} +add_library(QtAwesome QtAwesome.cpp QtAwesomeAnim.cpp QtAwesomeFree.qrc ) -target_include_directories(${PROJECT_NAME} +target_include_directories(QtAwesome INTERFACE ${PROJECT_SOURCE_DIR} ) -target_link_libraries(${PROJECT_NAME} PUBLIC +target_link_libraries(QtAwesome PUBLIC Qt${QT_VERSION_MAJOR}::Widgets ) diff --git a/QtAwesomeSample/CMakeLists.txt b/QtAwesomeSample/CMakeLists.txt index 1514558..41d9a9d 100644 --- a/QtAwesomeSample/CMakeLists.txt +++ b/QtAwesomeSample/CMakeLists.txt @@ -10,11 +10,11 @@ set(CMAKE_AUTORCC ON) add_subdirectory(../QtAwesome QtAwesome) -add_executable(${PROJECT_NAME} +add_executable(QtAwesomeSample mainwindow.cpp main.cpp ) -target_link_libraries(${PROJECT_NAME} +target_link_libraries(QtAwesomeSample PUBLIC QtAwesome )