-
Notifications
You must be signed in to change notification settings - Fork 2
/
CMakeLists.txt
47 lines (37 loc) · 1.62 KB
/
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
project(LSM)
SET(CMAKE_BUILD_TYPE Debug CACHE STRING "Debug configuration" FORCE)
SET(CMAKE_CXX_FLAGS -std=gnu++0x)
set (LSM_VERSION_MAJOR 1)
set (LSM_VERSION_MINOR 0)
cmake_minimum_required(VERSION 2.8)
set(NEMO_SOURCE_DIR "NeMo-0.7.2" CACHE PATH "Install dir" )
IF ( NEMO_SOURCE_DIR )
MESSAGE(STATUS "-- Looking for Nemo-0.7.2 - found")
ELSE ( NEMO_SOURCE_DIR )
MESSAGE(FATAL_ERROR "-- Looking for Nemo-0.7.2 - not found")
ENDIF ( NEMO_SOURCE_DIR )
include_directories(${NEMO_SOURCE_DIR}/build/src/)
include_directories(${NEMO_SOURCE_DIR}/src/)
link_directories(${NEMO_SOURCE_DIR}/build/src/nemo/cuda/)
link_directories(${NEMO_SOURCE_DIR}/build/src/nemo/)
include(FindEigen3.cmake)
include_directories(${EIGEN3_INCLUDE_DIR})
## SET HERE BOOST DIR!
SET(BOOST_DIR "boost_1_55_0/" CACHE PATH "Install dir" )
include(MyFindBoost.cmake)
#Gaul GA library
set(GAUL_SOURCE_DIR "GAUL-0.1849" CACHE PATH "Gaul install dir" )
IF ( GAUL_SOURCE_DIR )
MESSAGE(STATUS "-- Looking for Gaul-0.1849 - found")
ELSE ( GAUL_SOURCE_DIR )
MESSAGE(FATAL_ERROR "-- Looking for Gaul-0.1849 - not found. Need the include and lib dirs of GAUL")
ENDIF ( GAUL_SOURCE_DIR )
include_directories(${GAUL_SOURCE_DIR}/build/include/)
link_directories(${GAUL_SOURCE_DIR}/build/lib/)
set(CMAKE_PREFIX_PATH ${GAUL_SOURCE_DIR}/build/)
set(EXTRA_LIBS ${EXTRA_LIBS} gaul gaul_util nn_util)
include_directories("${PROJECT_BINARY_DIR}")
add_library(LSMlib Trainings.cpp Readouts.cpp Constructs.cpp NemoLSM.cpp)
set (EXTRA_LIBS ${EXTRA_LIBS} LSMlib nemo_base nemo boost_system pthread blas m )
add_executable(main main.cpp )
target_link_libraries (main ${EXTRA_LIBS})