-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
37 lines (29 loc) · 1.41 KB
/
CMakeLists.txt
File metadata and controls
37 lines (29 loc) · 1.41 KB
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
cmake_minimum_required (VERSION 2.8)
if (NOT DEFINED LEMONADE_DIR)
message("LEMONADE_DIR is not provided.LEMONADE_DIR is the installation path of the main repo. If build fails, use -DLEMONADE_DIR=/path/to/LeMonADE/")
endif()
#specify the paths to find the include files and the library (.cpp files)
set (LEMONADE_INCLUDE_DIR ${LEMONADE_DIR}include/)
set (LEMONADE_LIBRARY_DIR ${LEMONADE_DIR}lib/)
message( "LeMonADE_installPath : " ${LEMONADE_DIR} )
message( "LeMonADE_includePath : " ${LEMONADE_INCLUDE_DIR} )
message( "LeMonADE_libraryPath : " ${LEMONADE_LIBRARY_DIR} )
include_directories (${LEMONADE_INCLUDE_DIR})
link_directories (${LEMONADE_LIBRARY_DIR})
set (EXECUTABLE_OUTPUT_PATH "${CMAKE_BINARY_DIR}/bin")
#define flags for the gcc compiler
set (CMAKE_CXX_FLAGS " -O3 -msse2 -mssse3 -std=c++11 -fexpensive-optimizations -std=c++11 -Wno-error=narrowing")
set (CMAKE_C_FLAGS "-O3 -msse2 -mssse3 -std=c++11-fexpensive-optimizations -std=c++11 -Wno-error=narrowing")
#add the relevant subdirectories for doing fancy stuff
add_subdirectory(projects)
# add_subdirectory(analyzer)
# add_subdirectory(updater)
# add_subdirectory(feature)
if (NOT DEFINED LEMONADE_TESTS )
message("If you want to compile the tests use -DLEMONADE_TESTS=ON")
endif()
# option(LEMONADE_TESTS "Build the test" OFF)
if(LEMONADE_TESTS)
message("Add the ./test directory and compile the tests")
add_subdirectory(test)
endif(LEMONADE_TESTS)