aboutsummaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorrtk0c <[email protected]>2022-06-29 10:47:12 -0700
committerrtk0c <[email protected]>2022-06-29 10:47:12 -0700
commit2cf952088d375ac8b2f45b144462af0953436cff (patch)
treed437c348cff8fa79729b8bd3367f3e7c25cd0f32 /core
parentfad6a88a13ab1f888ab25ad0aae19c1d63aa0623 (diff)
Convert CMake to use include directory inheritance through library targets
Diffstat (limited to 'core')
-rw-r--r--core/CMakeLists.txt10
1 files changed, 7 insertions, 3 deletions
diff --git a/core/CMakeLists.txt b/core/CMakeLists.txt
index f17335a..337ed63 100644
--- a/core/CMakeLists.txt
+++ b/core/CMakeLists.txt
@@ -38,6 +38,12 @@ file(GLOB_RECURSE CPLT_CORE_SOURCES_NORMAL
)
add_executable(CpltCore ${CPLT_CORE_SOURCES_SPECIAL} ${CPLT_CORE_SOURCES_NORMAL})
+set_target_properties(CpltCore
+PROPERTIES
+ CXX_STANDARD 20
+ CXX_STANDARD_REQUIRED ON
+ CXX_EXTENSIONS OFF
+)
set(CPLT_CORE_SOURCES_NORMAL_UNITY_EXCLUDED
src/Entrypoint/main.cpp
@@ -65,13 +71,11 @@ PROPERTIES
target_include_directories(CpltCore PRIVATE
${CMAKE_CURRENT_LIST_DIR}/src
- ${CMAKE_SOURCE_DIR}/3rdparty/iconfontheaders
- ${CMAKE_SOURCE_DIR}/3rdparty/imgui
- ${CMAKE_SOURCE_DIR}/3rdparty/imgui-node-editor
)
target_link_libraries(CpltCore
PRIVATE
${CONAN_LIBS}
+ icon-font-headers
imgui
implot
imgui-node-editor