2009-12-11 06:48:37 -06:00
|
|
|
|
2010-07-15 09:09:17 -05:00
|
|
|
project(VLSISAPD)
|
2009-12-11 06:48:37 -06:00
|
|
|
|
2010-07-15 09:09:17 -05:00
|
|
|
cmake_minimum_required(VERSION 2.4.0)
|
2010-07-13 06:14:03 -05:00
|
|
|
|
2011-02-02 04:43:02 -06:00
|
|
|
list(INSERT CMAKE_MODULE_PATH 0 "${DESTDIR}/$ENV{BOOTSTRAP_TOP}/share/cmake/Modules/")
|
2010-07-15 09:09:17 -05:00
|
|
|
find_package(Bootstrap REQUIRED)
|
|
|
|
list(INSERT CMAKE_MODULE_PATH 0 "${VLSISAPD_SOURCE_DIR}/cmake_modules/")
|
2010-07-13 06:14:03 -05:00
|
|
|
|
2011-02-02 04:43:02 -06:00
|
|
|
set_cmake_policies()
|
2010-10-08 06:22:59 -05:00
|
|
|
setup_boost(program_options filesystem python regex)
|
2010-07-13 06:14:03 -05:00
|
|
|
|
2010-07-15 09:09:17 -05:00
|
|
|
find_package(LibXml2 REQUIRED)
|
|
|
|
find_package(PythonSitePackages REQUIRED)
|
|
|
|
find_package(PythonLibs REQUIRED)
|
2010-10-08 06:22:59 -05:00
|
|
|
find_package(BISON REQUIRED)
|
|
|
|
find_package(FLEX REQUIRED)
|
2010-07-15 09:09:17 -05:00
|
|
|
find_package(Doxygen)
|
2010-07-13 06:14:03 -05:00
|
|
|
|
2010-07-15 09:09:17 -05:00
|
|
|
add_subdirectory(src)
|
|
|
|
add_subdirectory(cmake_modules)
|
2009-12-11 06:48:37 -06:00
|
|
|
|
2010-07-15 09:09:17 -05:00
|
|
|
if(BUILD_DOC AND DOXYGEN_FOUND)
|
|
|
|
add_subdirectory(doc)
|
|
|
|
add_subdirectory(examples)
|
|
|
|
endif(BUILD_DOC AND DOXYGEN_FOUND)
|