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 )