Replace ${PROJECT_NAME}

This commit is contained in:
Martin Delille 2023-01-26 15:18:41 +01:00
parent 50b1d03794
commit ff468e59b3
No known key found for this signature in database
GPG Key ID: C073D887B6E32DE5
2 changed files with 5 additions and 5 deletions

View File

@ -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
)

View File

@ -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
)