-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
39 lines (31 loc) · 1003 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
27
28
29
30
31
32
33
34
35
36
37
38
39
cmake_minimum_required(VERSION 2.6)
project(rvmer)
SET(CARVE_SOURCE_DIR ${rvmer_SOURCE_DIR}/Carve)
SET(CARVE_BINARY_DIR ${rvmer_BINARY_DIR})
add_subdirectory(Carve)
include_directories(
"${PROJECT_DIR}pmuc/src/api"
"${PROJECT_DIR}pmuc/src/common"
"${PROJECT_DIR}Carve/include"
)
set (CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/bin)
find_package(eigen3)
IF (eigen3_FOUND)
include_directories(${EIGEN3_INCLUDE_DIR})
message(STATUS "eigen: ${EIGEN3_INCLUDE_DIR}")
endif()
find_package(OpenGL REQUIRED)
file(GLOB SOURCES
"${PROJECT_DIR}pmuc/src/api/*.cpp"
"${PROJECT_DIR}pmuc/src/common/*.cpp"
)
set(SOURCES
${SOURCES}
rvmer.cpp
rvmerlib.cpp
)
# file(GLOB SOURCES "${PROJECT_DIR}pmuc/src/common/*.cpp")
# add_library (lib-${PROJECT_NAME} STATIC ${SOURCES})
add_library (${PROJECT_NAME} SHARED ${SOURCES})
# target_link_libraries(lib-${PROJECT_NAME} ${OPENGL_LIBRARIES} )
target_link_libraries(${PROJECT_NAME} ${OPENGL_LIBRARIES} -static-libgcc -static-libstdc++)