-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
45 lines (30 loc) · 925 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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
cmake_minimum_required (VERSION 2.8)
project(OSLib)
# Neato
#set(CMAKE_DISABLE_SOURCE_CHANGES ON)
#set(CMAKE_DISABLE_IN_SOURCE_BUILD ON)
#set(CMAKE_VERBOSE_MAKEFILE ON)
set(CMAKE_COLOR_MAKEFILE ON)
#CMAKE_EXPORT_COMPILE_COMMANDS=ON
# Interesting, creats a listing of the compilation commands
# Neat for inspection
# Still doesn't work for building :/
#include(ProcessorCount)
#ProcessorCount(N)
#if(NOT N EQUAL 0)
#message(STATUS "Building with ${N} cores!")
#set(MAKEOPTS ${MAKEOPTS} -j${N})
# set(CTEST_BUILD_FLAGS -j${N})
# set(ctest_test_args ${ctest_test_args} PARALLEL_LEVEL ${N})
#endif()
if(APPLE)
# Make policy CMP0042 warning go away
set(CMAKE_MACOSX_RPATH ON)
endif()
if (NOT CMAKE_BUILD_TYPE)
message(STATUS "Build type not set, defaulting to Release")
set(CMAKE_BUILD_TYPE Release)
endif()
add_subdirectory(dyn_array)
add_subdirectory(bitmap)
# My hero http://stackoverflow.com/a/16404000