diff options
author | rtk0c <[email protected]> | 2022-04-08 22:30:12 -0700 |
---|---|---|
committer | rtk0c <[email protected]> | 2022-04-08 22:30:12 -0700 |
commit | e7ef3f208c109357538b1f68af10bcd78db95c95 (patch) | |
tree | 066d614ae0f079e53602d7c0fd972998c546c8c1 /CMakeLists.txt | |
parent | f163e8f37123e651ea80b690793845b31ddb8639 (diff) |
Changeset: 3 More work
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 26 |
1 files changed, 21 insertions, 5 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index daa5bd1..c2f7527 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,19 +1,35 @@ cmake_minimum_required(VERSION 3.13) project(ProjectBrussel LANGUAGES C CXX) +include(${CMAKE_BINARY_DIR}/conanbuildinfo.cmake) +conan_basic_setup() + find_package(OpenGL REQUIRED) -add_subdirectory(3rdparty/glad) add_subdirectory(3rdparty/glfw) add_subdirectory(3rdparty/glm) add_subdirectory(3rdparty/imgui) -add_subdirectory(3rdparty/stb) +add_subdirectory(3rdparty/imguizmo) add_executable(${PROJECT_NAME} # add_executable requires at least one source file - source/main.cpp + dummy.c ) add_subdirectory(source) +option(BRUSSEL_ENABLE_ASAN "Enable AddressSanitizer or not." OFF) +if(BRUSSEL_ENABLE_ASAN) + target_compile_options(${PROJECT_NAME} + PRIVATE + -fsanitize=address + -fno-omit-frame-pointer + ) + target_link_options(${PROJECT_NAME} + PRIVATE + -fsanitize=address + -fno-omit-frame-pointer + ) +endif() + target_compile_features(${PROJECT_NAME} PUBLIC cxx_std_20) set_target_properties(${PROJECT_NAME} PROPERTIES @@ -27,10 +43,10 @@ PROPERTIES target_include_directories(${PROJECT_NAME} PRIVATE sources/) target_link_libraries(${PROJECT_NAME} PRIVATE + ${CONAN_LIBS} OpenGL::GL - glad glfw glm::glm imgui - stb + ImGuizmo ) |