-
Notifications
You must be signed in to change notification settings - Fork 29
/
CMakeLists.txt
48 lines (37 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
#==============================================================================
PROJECT(COIN_OR_OSI_CLP C CXX)
# CMake version control
CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
# static libraries only
SET(BUILD_SHARED_LIBS OFF)
# use PIC code for link into shared lib
IF(UNIX)
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC")
ENDIF(UNIX)
################
INCLUDE_DIRECTORIES(.
./CoinUtils/src/
./Osi/src/Osi/
./Clp/src/
./Clp/src/OsiClp/
#Clp/test/
#Osi/src/OsiCommonTest/
)
# optimise gcc
IF(CMAKE_COMPILER_IS_GNUCC OR CMAKE_COMPILER_IS_GNUCXX)
ADD_DEFINITIONS(-O3 -Wall -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -ffast-math)
ENDIF(CMAKE_COMPILER_IS_GNUCC OR CMAKE_COMPILER_IS_GNUCXX)
IF(MSVC)
ADD_DEFINITIONS(
-D_CRT_SECURE_NO_WARNINGS
-D_CRT_SECURE_NO_DEPRECATE
#-DSAMPLEDIR="..\..\..\..\Data\Sample\\"
)
ENDIF(MSVC)
ADD_SUBDIRECTORY(CoinUtils)
SET_PROPERTY(TARGET lib_CoinUtils PROPERTY FOLDER OpenMVG/3rdParty/osi_clp)
ADD_SUBDIRECTORY(Osi)
SET_PROPERTY(TARGET lib_Osi PROPERTY FOLDER OpenMVG/3rdParty/osi_clp)
ADD_SUBDIRECTORY(Clp)
SET_PROPERTY(TARGET lib_OsiClpSolver PROPERTY FOLDER OpenMVG/3rdParty/osi_clp)
SET_PROPERTY(TARGET lib_clp PROPERTY FOLDER OpenMVG/3rdParty/osi_clp)