Browse code

CMake progress

Nat! authored on 13-04-2016 15:46:05
Showing 2 changed files
... ...
@@ -9,3 +9,4 @@ project.xcworkspace/
9 9
 .bootstrap.local/
10 10
 dependencies/
11 11
 mulle-configuration/
12
+tmp/
... ...
@@ -2,18 +2,15 @@ cmake_minimum_required (VERSION 3.0)
2 2
 
3 3
 project (mulle-vararg)
4 4
 
5
-#
6
-# dont forget to wipe all cmake produced files before
7
-# changing this
8
-#
9
-
10
-if (CMAKE_CXX_COMPILER_ID MATCHES "GNU")
11
-   set (CMAKE_C_FLAGS "-Wno-parantheses")
5
+set( CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_SOURCE_DIR}/mulle-configuration)
6
+message(STATUS "CMAKE_MODULE_PATH is ${CMAKE_MODULE_PATH}")
7
+message(STATUS "CMAKE_BUILD_TYPE is ${CMAKE_BUILD_TYPE}")
8
+if( "${CMAKE_BUILD_TYPE}" STREQUAL "Debug")
9
+  include( Debug)
10
+else()
11
+  include( Release)
12 12
 endif()
13 13
 
14
-#set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -DDEBUG -DMULLE_ATOMIC_TRACE")
15
-set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O3 -g -DNDEBUG")
16
-
17 14
 set(HEADERS
18 15
 src/mulle_align.h
19 16
 src/mulle_vararg.h