graph/CMakeLists.txt

23 lines
744 B
CMake
Raw Normal View History

2024-05-13 21:41:20 +00:00
cmake_minimum_required(VERSION 3.22)
project(graph)
2024-05-15 11:17:53 +00:00
set(CMAKE_CXX_STANDARD 20)
2024-05-13 21:41:20 +00:00
set(CMAKE_CXX_STANDARD_REQUIRED ON)
2024-05-14 08:54:07 +00:00
set(CMAKE_EXPORT_COMPILE_COMMANDS true)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wextra -Werror -Wno-unused-parameter -Wno-unused-variable -Wno-unused-private-field")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -Werror -Wno-unused-parameter -Wno-unused-variable -Wno-unused-private-field")
2024-05-13 21:41:20 +00:00
if(DEBUG)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -g -DDEBUG")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g -DDEBUG")
endif()
2024-05-14 14:08:39 +00:00
include_directories("${CMAKE_SOURCE_DIR}/inc")
2024-05-14 08:54:07 +00:00
# build plugins
2024-05-13 21:41:20 +00:00
add_subdirectory("${CMAKE_SOURCE_DIR}/src/graph/plugins")
2024-05-14 08:54:07 +00:00
# build gui server
2024-05-14 14:08:39 +00:00
add_subdirectory("${CMAKE_SOURCE_DIR}/src/graph/server")