mirror of
https://github.com/Sani7/remote-ui.git
synced 2026-10-26 21:51:13 +01:00
Add cmake debug compile warings
This commit is contained in:
Vendored
+4
@@ -1,5 +1,9 @@
|
||||
add_library(Color STATIC)
|
||||
|
||||
target_compile_options(Color PRIVATE $<$<CONFIG:Debug>:
|
||||
-Wall -Wextra -pedantic-errors -Wconversion -Wsign-conversion
|
||||
>)
|
||||
|
||||
target_sources(Color
|
||||
PRIVATE
|
||||
${CMAKE_CURRENT_LIST_DIR}/color.cpp
|
||||
|
||||
Vendored
+4
@@ -1,5 +1,9 @@
|
||||
add_library(Timer STATIC)
|
||||
|
||||
target_compile_options(Timer PRIVATE $<$<CONFIG:Debug>:
|
||||
-Wall -Wextra -pedantic-errors -Wconversion -Wsign-conversion
|
||||
>)
|
||||
|
||||
target_sources(Timer
|
||||
PRIVATE
|
||||
${CMAKE_CURRENT_LIST_DIR}/timer.cpp
|
||||
|
||||
@@ -5,6 +5,10 @@ include(FetchContent)
|
||||
FetchContent_Declare(json URL https://github.com/nlohmann/json/releases/download/v3.11.2/json.tar.xz)
|
||||
FetchContent_MakeAvailable(json)
|
||||
|
||||
target_compile_options(UI PRIVATE $<$<CONFIG:Debug>:
|
||||
-Wall -Wextra -pedantic-errors -Wconversion -Wsign-conversion
|
||||
>)
|
||||
|
||||
target_sources(UI
|
||||
PRIVATE
|
||||
${CMAKE_CURRENT_LIST_DIR}/UI_item.cpp
|
||||
|
||||
@@ -13,6 +13,7 @@ target_link_libraries(tests ${LIBS})
|
||||
target_compile_options(tests PRIVATE $<$<CONFIG:Debug>:
|
||||
-Wall -Wextra -pedantic-errors -Wconversion -Wsign-conversion
|
||||
>)
|
||||
|
||||
target_link_libraries(tests
|
||||
PRIVATE
|
||||
UI
|
||||
|
||||
@@ -4,6 +4,17 @@ target_sources(simulators PRIVATE
|
||||
${CMAKE_CURRENT_LIST_DIR}/simulator_base.cpp
|
||||
)
|
||||
|
||||
target_compile_options(simulators PRIVATE $<$<CONFIG:Debug>:
|
||||
-Wall -Wextra -pedantic-errors -Wconversion -Wsign-conversion
|
||||
>)
|
||||
|
||||
target_include_directories(simulators
|
||||
PUBLIC
|
||||
${CMAKE_CURRENT_LIST_DIR}
|
||||
PRIVATE
|
||||
${PROJECT_DIR}/external/**
|
||||
)
|
||||
|
||||
target_link_libraries(simulators PRIVATE
|
||||
UI
|
||||
)
|
||||
Reference in New Issue
Block a user