-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
26 lines (19 loc) · 812 Bytes
/
CMakeLists.txt
File metadata and controls
26 lines (19 loc) · 812 Bytes
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
26
cmake_minimum_required (VERSION 3.0)
project (Lepton)
# set flags
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -Wextra")
# Add to module path, so we can find our cmake modules
list( APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/modules )
# find 3rd party libraries
set(CMAKE_HELPERS_DIR ${CMAKE_SOURCE_DIR}/cmake)
include(${CMAKE_HELPERS_DIR}/third-party.cmake)
third_party()
# set output structure for binaries and libraries
file(MAKE_DIRECTORY ${CMAKE_SOURCE_DIR}/install/lib ${CMAKE_SOURCE_DIR}/install/bin)
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/install/lib)
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/install/lib)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/install/bin)
# Compile libraries
add_subdirectory(lib)
# Compile apps
add_subdirectory(app)