File tree Expand file tree Collapse file tree 2 files changed +4
-33
lines changed
Expand file tree Collapse file tree 2 files changed +4
-33
lines changed Original file line number Diff line number Diff line change 11cmake_minimum_required (VERSION 3.2)
22
3-
4- # Options for enabling/disabling MQF binaries and tests
5-
6- option (SUPRESS_BIN "Suppress building MQF binaries" OFF )
7- option (SUPRESS_TESTS "Suppress building MQF tests" OFF )
8-
9- if (SUPRESS_BIN)
10- add_definitions (-DSUPRESS_BIN=1)
11- else ()
12- add_definitions (-DSUPRESS_BIN=0)
13- endif ()
14- if (SUPRESS_TESTS)
15- add_definitions (-DSUPRESS_TESTS=1)
16- else ()
17- add_definitions (-DSUPRESS_TESTS=0)
18- endif ()
19-
20- # ------------------ END Of Options ------------------
21-
22-
233set (CMAKE_CXX_STANDARD 11)
244set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -O3" )
255
@@ -58,15 +38,7 @@ include_directories(${STXXL_INCLUDE_DIRS})
5838
5939
6040add_subdirectory (src)
41+ add_subdirectory (bin)
6142
62-
63- if (NOT SUPRESS_BIN)
64- message ("Building MQF binaries" )
65- add_subdirectory (bin)
66- endif ()
67-
68- if (NOT DSUPRESS_TESTS)
69- message ("Building MQF tests" )
70- enable_testing ()
71- add_subdirectory (tests)
72- endif ()
43+ enable_testing ()
44+ add_subdirectory (tests)
Original file line number Diff line number Diff line change @@ -7,8 +7,7 @@ use cmake::Config;
77fn main ( ) {
88 let dst = Config :: new ( "." )
99 . define ( "BUILD_STATIC_LIBS" , "ON" )
10- . define ( "SUPRESS_BIN" , "ON" )
11- . define ( "SUPRESS_TESTS" , "ON" )
10+ . build_target ( "MQF" )
1211 . build ( ) ;
1312
1413 // TODO: there are probably better ways to do this...
You can’t perform that action at this time.
0 commit comments