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)
|
|
|
|
|
2010-07-13 06:14:03 -05:00
|
|
|
MACRO(SETUP_PROJECT_PATHS project)
|
|
|
|
IF( NOT("$ENV{${project}_TOP}" STREQUAL "") )
|
|
|
|
MESSAGE("-- ${project}_TOP is set to $ENV{${project}_TOP}")
|
|
|
|
SET(PROJECT_MODULE_PATH "${DESTDIR}$ENV{${project}_TOP}/share/cmake/Modules/")
|
|
|
|
LIST(INSERT CMAKE_MODULE_PATH 0 "${PROJECT_MODULE_PATH}")
|
|
|
|
ENDIF( NOT("$ENV{${project}_TOP}" STREQUAL "") )
|
|
|
|
|
|
|
|
IF( NOT("$ENV{${project}_USER_TOP}" STREQUAL "") )
|
|
|
|
MESSAGE("-- ${project}_USER_TOP is set to $ENV{${project}_USER_TOP}")
|
|
|
|
SET(PROJECT_MODULE_PATH "${DESTDIR}$ENV{${project}_USER_TOP}/share/cmake/Modules/")
|
|
|
|
LIST(INSERT CMAKE_MODULE_PATH 0 "${PROJECT_MODULE_PATH}")
|
|
|
|
ENDIF( NOT("$ENV{${project}_USER_TOP}" STREQUAL "") )
|
|
|
|
|
|
|
|
LIST(REMOVE_DUPLICATES CMAKE_MODULE_PATH)
|
|
|
|
ENDMACRO(SETUP_PROJECT_PATHS project)
|
|
|
|
|
|
|
|
SETUP_PROJECT_PATHS(GOODIES)
|
|
|
|
|
2010-05-22 17:22:54 -05:00
|
|
|
LIST(INSERT CMAKE_MODULE_PATH 0 "${VLSISAPD_SOURCE_DIR}/cmake_modules")
|
2009-12-11 06:48:37 -06:00
|
|
|
|
2010-07-13 06:14:03 -05:00
|
|
|
find_package(Goodies REQUIRED)
|
|
|
|
|
2010-07-13 11:33:51 -05:00
|
|
|
SETUP_BOOST(program_options filesystem python)
|
2010-06-23 09:08:22 -05:00
|
|
|
|
2010-01-19 03:50:19 -06:00
|
|
|
FIND_PACKAGE(LibXml2 REQUIRED)
|
2010-07-13 06:14:03 -05:00
|
|
|
FIND_PACKAGE(PythonLibs REQUIRED)
|
2010-05-22 17:22:54 -05:00
|
|
|
FIND_PACKAGE(PythonSitePackages REQUIRED)
|
2010-07-13 02:25:30 -05:00
|
|
|
FIND_PACKAGE(PythonLibs REQUIRED)
|
2010-06-11 09:49:21 -05:00
|
|
|
|
|
|
|
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)
|
2010-06-11 09:49:21 -05:00
|
|
|
|
|
|
|
IF(BUILD_DOC AND DOXYGEN_FOUND)
|
|
|
|
ADD_SUBDIRECTORY(doc)
|
|
|
|
ADD_SUBDIRECTORY(examples)
|
|
|
|
ENDIF(BUILD_DOC AND DOXYGEN_FOUND)
|