2010-03-09 09:20:13 -06:00
|
|
|
|
2010-07-15 09:00:28 -05:00
|
|
|
project(CRLCORE)
|
|
|
|
|
|
|
|
cmake_minimum_required(VERSION 2.4.0)
|
|
|
|
|
2011-02-02 05:17:46 -06:00
|
|
|
OPTION(BUILD_DOC "Build the documentation (latex+doxygen)" OFF)
|
2010-08-12 21:01:18 -05:00
|
|
|
|
2011-02-02 05:17:46 -06:00
|
|
|
list(INSERT CMAKE_MODULE_PATH 0 "${DESTDIR}/$ENV{BOOTSTRAP_TOP}/share/cmake/Modules/")
|
2010-07-15 09:00:28 -05:00
|
|
|
find_package(Bootstrap REQUIRED)
|
|
|
|
setup_project_paths(VLSISAPD)
|
|
|
|
setup_project_paths(CORIOLIS)
|
|
|
|
list(INSERT CMAKE_MODULE_PATH 0 "${CRLCORE_SOURCE_DIR}/cmake_modules/")
|
|
|
|
print_cmake_module_path()
|
|
|
|
|
|
|
|
set_cmake_policies()
|
2011-02-02 05:17:46 -06:00
|
|
|
check_distribution()
|
2010-07-15 09:00:28 -05:00
|
|
|
set_lib_link_mode()
|
2011-02-15 06:49:57 -06:00
|
|
|
setup_sysconfdir("${CMAKE_INSTALL_PREFIX}")
|
2013-04-21 10:36:06 -05:00
|
|
|
setup_boost(program_options python regex wave)
|
2013-03-13 08:38:38 -05:00
|
|
|
message(STATUS "${Boost_LIBRARIES}")
|
2010-07-15 09:00:28 -05:00
|
|
|
|
|
|
|
find_package(LibXml2 REQUIRED)
|
|
|
|
find_package(PythonLibs REQUIRED)
|
|
|
|
find_package(PythonSitePackages REQUIRED)
|
|
|
|
set(QT_USE_QTXML "true")
|
|
|
|
find_package(Qt4 REQUIRED) # find and setup Qt4 for this project
|
|
|
|
find_package(BISON REQUIRED)
|
|
|
|
find_package(FLEX REQUIRED)
|
|
|
|
find_package(LEFDEF)
|
|
|
|
find_package(OPENACCESS)
|
|
|
|
find_package(VLSISAPD REQUIRED)
|
|
|
|
find_package(HURRICANE REQUIRED)
|
2012-12-03 02:27:41 -06:00
|
|
|
find_package(Libexecinfo REQUIRED)
|
2012-12-03 08:51:44 -06:00
|
|
|
#if(BUILD_DOC)
|
|
|
|
# include(UseLATEX)
|
|
|
|
#endif(BUILD_DOC)
|
2010-07-15 09:00:28 -05:00
|
|
|
|
|
|
|
add_subdirectory(src)
|
|
|
|
add_subdirectory(etc)
|
|
|
|
add_subdirectory(cmake_modules)
|
2010-08-12 21:01:18 -05:00
|
|
|
|
|
|
|
if(BUILD_DOC)
|
|
|
|
FIND_PACKAGE(Doxygen)
|
|
|
|
endif(BUILD_DOC)
|
|
|
|
|
2010-07-15 09:00:28 -05:00
|
|
|
if(BUILD_DOC)
|
|
|
|
add_subdirectory(doc)
|
|
|
|
endif(BUILD_DOC)
|