-
Notifications
You must be signed in to change notification settings - Fork 35
/
CMakeLists.txt
21 lines (18 loc) · 724 Bytes
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# This is free and unencumbered software released into the public domain.
cmake_minimum_required( VERSION 3.0 )
project( bigg )
set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
add_subdirectory( deps )
include( deps/bgfx.cmake/cmake/util/ConfigureDebugging.cmake )
add_library( bigg STATIC src/bigg.cpp src/bigg_assets.h src/bigg_imgui.hpp src/bigg_shaders.hpp include/bigg.hpp )
target_link_libraries( bigg PUBLIC bgfx imgui glfw glm )
target_include_directories( bigg PUBLIC include )
option( BIGG_EXAMPLES "Build examples." ON )
if( BIGG_EXAMPLES )
add_subdirectory( examples )
endif()
option( BIGG_ASSET_GEN "Generate binary assets." OFF )
if( BIGG_ASSET_GEN )
add_subdirectory( assets/gen )
endif()