-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
37 lines (27 loc) · 912 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
cmake_minimum_required(VERSION 3.5.1)
project(TopoManager)
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_BUILD_TYPE "Debug")
set(EXECUTABLE_OUTPUT_PATH ${CMAKE_BINARY_DIR}/bin)
set(LIBRARY_OUTPUT_PATH ${CMAKE_BINARY_DIR}/lib)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Werror -Wextra -Wall")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC -Werror -Wextra -Wall")
#set(BUILD_SHARED_LIBS ON)
set (CMAKE_HELPER_DIR "${CMAKE_CURRENT_SOURCE_DIR}/cmake_helper")
set (CMAKE_MODULE_PATH ${CMAKE_HELPER_DIR})
include(${CMAKE_HELPER_DIR}/functions.cmake)
find_package(OpenCasCade REQUIRED)
find_package(OccWrapper REQUIRED)
include_directories(
"include"
${OPENCASCADE_INCLUDE_DIR}
${OCCWRAPPER_INCLUDE_DIR}
)
link_directories(
${OPENCASCADE_LIBRARIES_DIR}
${OCCWRAPPER_LIBRARIES_DIR}
)
add_subdirectory(src)
set(CTEST_ENVIRONMENT CTEST_OUTPUT_ON_FAILURE=1)
enable_testing()
add_subdirectory(test)