-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathCMakeLists.txt
51 lines (40 loc) · 1.43 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
48
49
50
51
project(meshcleaner)
cmake_minimum_required(VERSION 2.8)
option(BUILD_REST_SERVER "Build the REST server" OFF)
set(MESHCLEANER_SOURCES
meshcleanerworker.hpp meshcleanerworker.cpp
mesh_definitions.hpp mesh_definitions.cpp
meshcleaner.cpp
)
set(REST_SERVER_SOURCES
meshcleanerworker.hpp meshcleanerworker.cpp
mesh_definitions.hpp mesh_definitions.cpp
http_server.hpp http_server.cpp
meshcleaner_rest_server.cpp
)
set(STLCONVERT_SOURCES
stlconvert.cpp
)
set(MANIFOLDTEST_SOURCES
manifoldtest.cpp
)
if(BUILD_REST_SERVER)
# Set these to configure what flavor of boost you want to find
# Multithreaded is required
set(Boost_USE_MULTITHREADED, ON)
# Static or dynamic linking of boost
set(Boost_USE_STATIC_LIBS, OFF)
set(Boost_USE_STATIC_RUNTIME, OFF)
find_package(Boost 1.50 COMPONENTS filesystem thread system REQUIRED)
aux_source_directory(lib_json LIBJSON_SRC_LIST)
add_library(json ${LIBJSON_SRC_LIST})
endif(BUILD_REST_SERVER)
include_directories(.)
include_directories(vcglib)
if (BUILD_REST_SERVER)
add_executable(meshcleaner_rest_server ${REST_SERVER_SOURCES})
target_link_libraries(meshcleaner_rest_server json ${Boost_LIBRARIES})
endif(BUILD_REST_SERVER)
add_executable(meshcleaner ${MESHCLEANER_SOURCES})
add_executable(stlconvert ${STLCONVERT_SOURCES})
add_executable(manifoldtest ${MANIFOLDTEST_SOURCES})