-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
25 lines (20 loc) · 909 Bytes
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
cmake_minimum_required(VERSION 3.16)
project(c-render VERSION 0.0.1)
set(EXECUTABLE_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/bin)
set(LIBRARY_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/lib)
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${app_SOURCE_DIR}/cmake")
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -fno-omit-frame-pointer -fsanitize=address")
set(CMAKE_CXX_FLAGS -pg)
set(CMAKE_EXE_LINKER_FLAGS -pg)
set(CMAKE_BUILD_TYPE=Debug)
add_subdirectory(src)
add_executable(c-render src/app_main.c)
target_link_libraries(c-render render utils)
target_link_libraries(c-render graphics utils)
target_link_libraries(c-render utils)
target_link_libraries(c-render fs)
target_compile_options(c-render PRIVATE -fsanitize=address)
target_link_options(c-render PRIVATE -fsanitize=address)
add_compile_options(-fsanitize=address)
add_link_options(-fsanitize=address)
install(TARGETS c-render RUNTIME DESTINATION ${BIN_DIR})