coriolis/vlsisapd/CMakeLists.txt

34 lines
1.1 KiB
CMake
Raw Normal View History

2010-05-18 10:10:35 -05:00
PROJECT(VLSISAPD)
2009-12-11 06:48:37 -06:00
CMAKE_MINIMUM_REQUIRED(VERSION 2.4.0)
LIST(INSERT CMAKE_MODULE_PATH 0 "${VLSISAPD_SOURCE_DIR}/cmake_modules")
2009-12-11 06:48:37 -06:00
2010-06-23 09:08:22 -05:00
SET(CMAKE_C_FLAGS_DEBUG "-g -Wall" CACHE STRING "Debug options." FORCE)
SET(CMAKE_CXX_FLAGS_DEBUG "-g -Wall" CACHE STRING "Debug options." FORCE)
SET(CMAKE_C_FLAGS_RELEASE "-O3 -DNDEBUG -Wall" CACHE STRING "Release options." FORCE)
SET(CMAKE_CXX_FLAGS_RELEASE "-O3 -DNDEBUG -Wall" CACHE STRING "Release options." FORCE)
FIND_PACKAGE(LibXml2 REQUIRED)
FIND_PACKAGE(PythonSitePackages REQUIRED)
SET(Boost_USE_STATIC_LIBS ON)
MESSAGE(STATUS "Always uses Boost static libraries.")
FIND_PACKAGE(Boost 1.32.0 COMPONENTS program_options filesystem python REQUIRED)
IF (Boost_FOUND)
MESSAGE(STATUS "Found Boost.Python libraries in ${Boost_INCLUDE_DIR} as ${Boost_LIBRARIES}")
FIND_PACKAGE(PythonLibs REQUIRED)
ELSE (Boost_FOUND)
MESSAGE(STATUS "Boost.Python libraries were not found")
ENDIF (Boost_FOUND)
FIND_PACKAGE(Doxygen)
2010-06-03 09:01:19 -05:00
ADD_SUBDIRECTORY(src)
2009-12-11 06:48:37 -06:00
ADD_SUBDIRECTORY(cmake_modules)
IF(BUILD_DOC AND DOXYGEN_FOUND)
ADD_SUBDIRECTORY(doc)
ADD_SUBDIRECTORY(examples)
ENDIF(BUILD_DOC AND DOXYGEN_FOUND)