mirror of https://github.com/alexge50/gie
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
1000 B
28 lines
1000 B
cmake_minimum_required(VERSION 3.9) |
|
|
|
project(GIE) |
|
|
|
if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang") |
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Werror -Wno-deprecated-declarations") |
|
set (CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -fno-omit-frame-pointer -fsanitize=address") |
|
set (CMAKE_LINKER_FLAGS_DEBUG "${CMAKE_LINKER_FLAGS_DEBUG} -fno-omit-frame-pointer -fsanitize=address") |
|
elseif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU") |
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Werror -Wno-deprecated-declarations") |
|
elseif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "MSVC") |
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /W4") |
|
endif() |
|
|
|
add_subdirectory(3rdparty/nodeeditor) |
|
if(NOT TARGET Catch2) |
|
add_subdirectory(3rdparty/Catch2) |
|
endif() |
|
add_subdirectory(3rdparty/Qt-Color-Widgets) |
|
add_subdirectory(util) |
|
add_subdirectory(gie) |
|
add_subdirectory(modules) |
|
add_subdirectory(gui) |
|
|
|
set_target_properties( |
|
GIE PROPERTIES |
|
RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin" |
|
) |