Compare commits
2 commits
92db466083
...
a54d1f7e98
| Author | SHA1 | Date | |
|---|---|---|---|
|
a54d1f7e98 |
|||
|
15310fb707 |
1 changed files with 7 additions and 6 deletions
|
|
@ -1,5 +1,5 @@
|
|||
cmake_minimum_required(VERSION 3.30)
|
||||
project(LearnGtk4 LANGUAGES CXX)
|
||||
project(BillyGui LANGUAGES CXX)
|
||||
|
||||
include(FetchContent)
|
||||
find_package(PkgConfig REQUIRED)
|
||||
|
|
@ -7,6 +7,7 @@ pkg_check_modules(GTKMM4 REQUIRED IMPORTED_TARGET gtkmm-4.0)
|
|||
|
||||
fetchcontent_declare(BillySheet
|
||||
GIT_REPOSITORY https://gitea.pcornatcloud.fr/Pcornat/BillySheet.git
|
||||
GIT_TAG main
|
||||
GIT_SUBMODULES_RECURSE ON
|
||||
GIT_SHALLOW ON
|
||||
DOWNLOAD_EXTRACT_TIMESTAMP OFF
|
||||
|
|
@ -72,20 +73,20 @@ set(SPDLOG_NO_TLS ON)
|
|||
set(SPDLOG_NO_ATOMIC_LEVELS ON)
|
||||
fetchcontent_makeavailable(spdlog)
|
||||
|
||||
add_executable(LearnGtk4 main.cpp
|
||||
add_executable(${PROJECT_NAME} main.cpp
|
||||
hello_world.cpp
|
||||
hello_world.hpp
|
||||
app_win_2_back.cpp
|
||||
app_win_2_back.hpp
|
||||
)
|
||||
|
||||
set_target_properties(LearnGtk4 spdlog_header_only PROPERTIES
|
||||
set_target_properties(${PROJECT_NAME} spdlog_header_only PROPERTIES
|
||||
CXX_STANDARD 23
|
||||
CXX_STANDARD_REQUIRED ON
|
||||
CXX_EXTENSIONS OFF
|
||||
INTERPROCEDURAL_OPTIMIZATION ON
|
||||
)
|
||||
|
||||
target_compile_options(LearnGtk4 PUBLIC ${COMPILE_FLAGS})
|
||||
target_link_options(LearnGtk4 PUBLIC ${LINKER_OPTIONS})
|
||||
target_link_libraries(LearnGtk4 PkgConfig::GTKMM4 spdlog_header_only BillySheet)
|
||||
target_compile_options(${PROJECT_NAME} PUBLIC ${COMPILE_FLAGS})
|
||||
target_link_options(${PROJECT_NAME} PUBLIC ${LINKER_OPTIONS})
|
||||
target_link_libraries(${PROJECT_NAME} PkgConfig::GTKMM4 spdlog_header_only BillySheet)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue