-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathCMakeLists.txt
45 lines (35 loc) · 1.46 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
cmake_minimum_required (VERSION 2.6)
project (TAO)
# The version number.
set (TAO_VERSION_MAJOR 1)
set (TAO_VERSION_MINOR 0)
SET (CMAKE_CXX_FLAGS "-std=c++11 -Wall -O3 -funroll-loops -msse3")
SET (CMAKE_CXX_FLAGS_DEBUG "-g")
SET (CMAKE_CXX_FLAGS_MINSIZEREL "-Os -DNDEBUG")
SET (CMAKE_CXX_FLAGS_RELEASE "-O4 -funroll-loops -DNDEBUG")
#set(CMAKE_LIBRARY_PATH ${CMAKE_LIBRARY_PATH} /opt/local/lib)
include_directories(${PROJECT_SOURCE_DIR})
#message("project source dir = ${PROJECT_SOURCE_DIR}")
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${PROJECT_SOURCE_DIR}/cmake/Modules/")
#find_package(OpenCV COMPONENTS features2d nonfree flann imgproc highgui core)
find_package(BOINC)
find_package(MySQL)
find_package(OpenCL)
message(STATUS "opencl libraries: ${OPENCL_LIBRARIES}")
message(STATUS "opencl include_dirs: ${OPENCL_INCLUDE_DIRS}")
add_subdirectory(asynchronous_algorithms)
add_subdirectory(synchronous_algorithms)
add_subdirectory(clustering)
add_subdirectory(util)
add_subdirectory(mpi)
add_subdirectory(examples)
if (BOINC_SERVER_FOUND AND MYSQL_FOUND)
add_subdirectory(boinc)
else (BOINC_SERVER_FOUND AND MYSQL_FOUND)
if (BOINC_SERVER_FOUND)
message(WARNING "MYSQL libraries missing, not compiling boinc subdirectory.")
endif (BOINC_SERVER_FOUND)
if (MYSQL_FOUND)
message(WARNING "BOINC libraries missing, not compiling boinc subdirectory.")
endif (MYSQL_FOUND)
endif (BOINC_SERVER_FOUND AND MYSQL_FOUND)