summaryrefslogtreecommitdiffstats
path: root/scribus/plugins/tools/2geomtools/CMakeLists.txt
blob: ec1764d9a16b3900734d4f444c7d1277a5cf2135 (plain)
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
INCLUDE_DIRECTORIES(
  ${CMAKE_SOURCE_DIR}
  ${CMAKE_SOURCE_DIR}/scribus
)

FIND_PACKAGE(Boost)
IF (Boost_FOUND)
  MESSAGE("Boost Library Found OK")
ENDIF (Boost_FOUND)

# FIND_PATH(BOOST_INCLUDE_DIR boost/weak_ptr.hpp 
#                             /usr/include 
#                             /usr/local/include
#                             $ENV{BOOST_DIR} )
# 
# 
# IF (BOOST_INCLUDE_DIR)
#   SET(Boost_FOUND TRUE)
# ENDIF (BOOST_INCLUDE_DIR)

IF(Boost_FOUND)
  MESSAGE(STATUS "Boost: FOUND, building 2geomtools")
  INCLUDE_DIRECTORIES( ${Boost_INCLUDE_DIR} )
  ADD_SUBDIRECTORY (lib2geom)
  SET(GEOMLIB ${CMAKE_CURRENT_BINARY_DIR}/lib2geom/2geom)
  ADD_SUBDIRECTORY (meshdistortion)
  ADD_SUBDIRECTORY (pathalongpath)
ELSE(Boost_FOUND)
  MESSAGE(STATUS "Boost: NOT FOUND, not building 2geomtools")
ENDIF(Boost_FOUND)