|
1 | 1 | ## Please modify this file freely to adapt to the production of other |
2 | 2 | ## executables than convexhull and testrun |
3 | 3 |
|
| 4 | +# Description of the different builds |
| 5 | +# +---------------+--------------+--------------+----------| |
| 6 | +# | | optimization | assert works | stripped | |
| 7 | +# +---------------+--------------+--------------+----------| |
| 8 | +# | Debug | no | yes | no | |
| 9 | +# | Release | full | no | yes | |
| 10 | +# | RelWithDebInfo| good | no | no | |
| 11 | +# | MinSizeRel | size | no | yes | |
| 12 | +# +---------------+--------------+--------------+----------| |
| 13 | + |
| 14 | +# Alias for cmake commands |
| 15 | +# alias cmakedebug='cmake $1 -DCMAKE_BUILD_TYPE=DEBUG' |
| 16 | +# alias cmakerelease='cmake $1 -DCMAKE_BUILD_TYPE=RELEASE' |
| 17 | +# alias cmakerelwithdebinfo='cmake $1 -DCMAKE_BUILD_TYPE=RELWITHDEBINFO' |
| 18 | +# alias cmakeminsizerel='cmake $1 -DCMAKE_BUILD_TYPE=MINSIZEREL' |
| 19 | + |
| 20 | +# Example for release (first line only if the directory doesn't exist) |
| 21 | +# mkdir build_directory |
| 22 | +# cd build_directory |
| 23 | +# cmakerelease .. |
| 24 | + |
4 | 25 | # Recent version of CMake required |
5 | 26 | cmake_minimum_required(VERSION 3.1.0 FATAL_ERROR) |
6 | 27 |
|
7 | | -# Project Name |
| 28 | +# Project Name (change it freely) |
8 | 29 | project(smartstack) |
9 | 30 |
|
10 | 31 | STRING(TOLOWER "${CMAKE_BUILD_TYPE}" CMAKE_BUILD_TYPE_LOWER) |
@@ -40,13 +61,12 @@ set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "${CMAKE_CXX_FLAGS_RELWITHDEBINFO}") |
40 | 61 | set(CMAKE_CXX_FLAGS_MINSIZEREL "${CMAKE_CXX_FLAGS_MINSIZEREL}") |
41 | 62 |
|
42 | 63 | # Basic options for all builds |
43 | | -#set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -pedantic -Wextra -Weffc++ -Wshadow -ansi") |
44 | 64 | set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -pedantic -Wextra -Wshadow") |
45 | 65 | # Might need to be fixed for retrocompatibility or temporary |
46 | 66 | set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-c++0x-compat -Wno-unused") |
47 | 67 |
|
48 | 68 |
|
49 | | -# Test directories |
| 69 | +# Include directories |
50 | 70 | get_property(inc_dirs DIRECTORY PROPERTY INCLUDE_DIRECTORIES) |
51 | 71 | message("inc_dirs = ${inc_dirs}") |
52 | 72 |
|
@@ -78,25 +98,3 @@ file(GLOB SOURCES "examples/testrun/testrunExtras.cpp") |
78 | 98 | add_executable(testrunextras ${SOURCES}) |
79 | 99 | file(GLOB SOURCES "examples/testrun/generateInputTestRun.cpp") |
80 | 100 | add_executable(generateInputTestRun ${SOURCES}) |
81 | | - |
82 | | - |
83 | | -# Description of the different builds |
84 | | -# +---------------+--------------+--------------+----------| |
85 | | -# | | optimization | assert works | stripped | |
86 | | -# +---------------+--------------+--------------+----------| |
87 | | -# | Debug | no | yes | no | |
88 | | -# | Release | full | no | yes | |
89 | | -# | RelWithDebInfo| good | no | no | |
90 | | -# | MinSizeRel | size | no | yes | |
91 | | -# +---------------+--------------+--------------+----------| |
92 | | - |
93 | | -# Alias for cmake commands |
94 | | -# alias cmakedebug='cmake $1 -DCMAKE_BUILD_TYPE=DEBUG' |
95 | | -# alias cmakerelease='cmake $1 -DCMAKE_BUILD_TYPE=RELEASE' |
96 | | -# alias cmakerelwithdebinfo='cmake $1 -DCMAKE_BUILD_TYPE=RELWITHDEBINFO' |
97 | | -# alias cmakeminsizerel='cmake $1 -DCMAKE_BUILD_TYPE=MINSIZEREL' |
98 | | - |
99 | | -# Example for debug (first line only if the directory doesn't exist) |
100 | | -# mkdir build_directory |
101 | | -# cd build_directory |
102 | | -# cmakedebug .. |
0 commit comments