-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathCMakeLists.txt
27 lines (25 loc) · 1.09 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
project(odas)
cmake_minimum_required(VERSION 2.8)
aux_source_directory(. SRC_LIST)
find_package(OpenMP)
find_package(PkgConfig)
pkg_check_modules(JSON jsoncpp REQUIRED)
if (OPENMP_FOUND)
set (CMAKE_CXX_FLAGS "-Ofast -std=c++17 -I/usr/include/jsoncpp ${CMAKE_CXX_FLAGS} ${OpenMP_CXX_FLAGS}")
endif()
find_package(PCL 1.2 REQUIRED)
include_directories(${PCL_INCLUDE_DIRS})
link_directories(${PCL_LIBRARY_DIRS})
add_definitions(${PCL_DEFINITIONS})
SET(CMAES_LIBRARIES "/usr/local/lib/libcmaes.so")
SET(NSGA2_LIBRARIES "/usr/local/lib/libnsga2.so")
SET(NEWUOA_LIBRARIES "/usr/local/lib/libnewuoa.so")
SET(NLOPT_LIBRARIES "/usr/lib/x86_64-linux-gnu/libnlopt.so")
SET(POPOT_LIBRARIES "/usr/local/lib/libpopot.so")
add_executable(${PROJECT_NAME} ${SRC_LIST} )
target_link_libraries (${PROJECT_NAME} ${PCL_LIBRARIES})
target_link_libraries (${PROJECT_NAME} ${CMAES_LIBRARIES})
target_link_libraries (${PROJECT_NAME} ${NSGA2_LIBRARIES})
target_link_libraries (${PROJECT_NAME} ${NEWUOA_LIBRARIES})
target_link_libraries (${PROJECT_NAME} ${NLOPT_LIBRARIES})
target_link_libraries (${PROJECT_NAME} ${POPOT_LIBRARIES})