forked from utwente-fmt/dftcalc
-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
26 lines (23 loc) · 1013 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
message("Building configuration: ${CMAKE_BUILD_TYPE}")
#message("CMAKE_CXX_FLAGS: ${CMAKE_CXX_FLAGS}")
#message("CMAKE_CXX_FLAGS_DEBUG: ${CMAKE_CXX_FLAGS_DEBUG}")
#message("CMAKE_CXX_FLAGS_RELEASE: ${CMAKE_CXX_FLAGS_RELEASE}")
cmake_minimum_required(VERSION 2.8)
if(CMAKE_BUILD_TYPE STREQUAL "Debug")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${CMAKE_CXX_FLAGS_DEBUG} -g -DDEBUG=1 -UNDEBUG -O0 -DYYDEBUG=1")
set (BISON_CFLAGS "${BISON_CFLAGS} --verbose")
else()
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${CMAKE_CXX_FLAGS_RELEASE} -DNDEBUG=1 -UDEBUG -O3")
endif()
set(DFTROOT "/opt/dft2lntroot" CACHE PATH "")
message(STATUS "NOTE: When installed, dft2lnt will be installed in ${DFTROOT}")
message(STATUS " You can change this behaviour by running cmake with:")
message(STATUS " -DDFTROOT=/path/to/dft2lntroot")
add_subdirectory(dft2lnt)
add_subdirectory(dft2lntc)
add_subdirectory(dftcalc)
add_subdirectory(dfttest)
if(DEFINED ENV{CADP})
add_subdirectory(bcgconv)
endif()
add_subdirectory(share)