Skip to content

Commit

Permalink
Cinder support in CMakeLists.
Browse files Browse the repository at this point in the history
  • Loading branch information
PetterS committed Sep 22, 2013
1 parent 165914d commit c0b5de4
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,25 @@ IF (${OPENMP})
ENDIF(${OPENMP_FOUND})
ENDIF (${OPENMP})


SET(USE_CINDER ON)
FIND_PATH(CINDER_INCLUDE NAMES cinder/Cinder.h PATHS ${SEARCH_HEADERS})
IF (NOT EXISTS ${CINDER_INCLUDE})
MESSAGE("-- Did not find Cinder include directory.")
SET(USE_CINDER OFF)
ELSE()
MESSAGE("-- Found Cinder include directory.")
ENDIF()

FIND_LIBRARY(CINDER_LIB cinder)
IF (NOT EXISTS ${CINDER_LIB})
MESSAGE("-- Did not find the Cinder library.")
SET(USE_CINDER OFF)
ELSE()
MESSAGE("-- Found the Cinder library.")
ENDIF()


#
# gcc settings.
#
Expand Down Expand Up @@ -90,6 +109,10 @@ ENDIF (MSVC)
#
INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR})
INCLUDE_DIRECTORIES(third-party/Catch)
IF (${USE_CINDER})
MESSAGE("-- Will be using Cinder.")
INCLUDE_DIRECTORIES(${CINDER_INCLUDE})
ENDIF()
FILE(GLOB MCTS_HEADERS ${CMAKE_SOURCE_DIR}/*.h)

ADD_SUBDIRECTORY(games)
Expand Down

0 comments on commit c0b5de4

Please sign in to comment.