Skip to content

Commit 4e4db62

Browse files
committed
Cleanup some CMake things
1 parent 62d6cbf commit 4e4db62

File tree

4 files changed

+6
-21
lines changed

4 files changed

+6
-21
lines changed

CMakeLists.txt

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -10,21 +10,6 @@ set(CMAKE_CXX_STANDARD 20)
1010
set(CMAKE_CXX_EXTENSIONS OFF)
1111

1212
include(FetchContent)
13-
14-
set(FETCHCONTENT_UPDATES_DISCONNECTED TRUE)
15-
FetchContent_Declare(ftxui
16-
GIT_REPOSITORY https://github.com/ArthurSonzogni/ftxui
17-
GIT_TAG v3.0.0
18-
)
19-
20-
FetchContent_GetProperties(ftxui)
21-
if(NOT ftxui_POPULATED)
22-
FetchContent_Populate(ftxui)
23-
add_subdirectory(${ftxui_SOURCE_DIR} ${ftxui_BINARY_DIR} EXCLUDE_FROM_ALL)
24-
endif()
25-
26-
27-
2813
# Note: by default ENABLE_DEVELOPER_MODE is True
2914
# This means that all analysis (sanitizers, static analysis)
3015
# is enabled and all warnings are treated as errors
@@ -128,10 +113,6 @@ dynamic_project_options(
128113

129114
target_compile_features(project_options INTERFACE cxx_std_${CMAKE_CXX_STANDARD})
130115

131-
# We don't have any way of ensuring that all static dependencies are compiled with
132-
# address sanitizer enabled.
133-
target_compile_definitions(project_options INTERFACE _DISABLE_VECTOR_ANNOTATION)
134-
135116
# configure files based on CMake configuration options
136117
add_subdirectory(configured_files)
137118

conanfile.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ docopt.cpp/0.6.3
77
spdlog/1.10.0
88
nlohmann_json/3.10.5
99
lodepng/cci.20200615
10+
ftxui/3.0.0
1011

1112
[generators]
1213
cmake_find_package_multi

src/CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
find_package(fmt CONFIG)
2+
find_package(ftxui CONFIG)
23
find_package(spdlog CONFIG)
34
find_package(docopt CONFIG)
45
find_package(lodepng CONFIG)
@@ -23,7 +24,7 @@ add_executable(
2324
game_hacking_lesson_01.hpp
2425
game_hacking_lesson_02.cpp
2526
game_hacking_lesson_02.hpp
26-
tile_set.hpp
27+
tile_set.hpp
2728
game_components.cpp)
2829

2930
target_link_libraries(

test/CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
find_package(Catch2 REQUIRED)
22

3-
include(CTest)
3+
enable_testing()
4+
5+
#include(CTest)
46
include(Catch)
57

68
add_library(catch_main OBJECT catch_main.cpp)

0 commit comments

Comments
 (0)