From 2cf952088d375ac8b2f45b144462af0953436cff Mon Sep 17 00:00:00 2001 From: rtk0c Date: Wed, 29 Jun 2022 10:47:12 -0700 Subject: Convert CMake to use include directory inheritance through library targets --- core/CMakeLists.txt | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'core/CMakeLists.txt') 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 -- cgit v1.2.3-70-g09d2