mirror of
https://github.com/gamecreature/QtAwesome.git
synced 2024-11-15 13:35:44 +08:00
Replace ${PROJECT_NAME}
This commit is contained in:
parent
50b1d03794
commit
ff468e59b3
@ -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
|
||||
)
|
||||
|
@ -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
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user