* All Tools:
- Change: Using more Bootstrap macros. Simpler way of setting the CMAKE_MODULE_PATH.
This commit is contained in:
parent
a1fc3ceca0
commit
9cb782265e
|
@ -1,60 +1,34 @@
|
||||||
PROJECT(UNICORN)
|
|
||||||
|
|
||||||
CMAKE_MINIMUM_REQUIRED(VERSION 2.4.0)
|
project(UNICORN)
|
||||||
|
|
||||||
|
cmake_minimum_required(VERSION 2.4.0)
|
||||||
|
|
||||||
# This macro has to be included in all the tools CMakeLists.txt as it's
|
list(INSERT CMAKE_MODULE_PATH 0 "$ENV{BOOTSTRAP_TOP}/share/cmake/Modules/")
|
||||||
# the sole means of localizing other tools/projects.
|
find_package(Bootstrap REQUIRED)
|
||||||
MACRO(SETUP_PROJECT_PATHS project)
|
setup_project_paths(VLSISAPD)
|
||||||
IF( NOT("$ENV{${project}_TOP}" STREQUAL "") )
|
setup_project_paths(CORIOLIS)
|
||||||
MESSAGE("-- ${project}_TOP is set to $ENV{${project}_TOP}")
|
|
||||||
SET(PROJECT_MODULE_PATH "${DESTDIR}$ENV{${project}_TOP}/share/cmake/Modules/")
|
set_cmake_policies()
|
||||||
LIST(INSERT CMAKE_MODULE_PATH 0 "${PROJECT_MODULE_PATH}")
|
set_lib_link_mode()
|
||||||
ENDIF( NOT("$ENV{${project}_TOP}" STREQUAL "") )
|
setup_apple()
|
||||||
|
setup_sysconfdir("$ENV{CORIOLIS_TOP}")
|
||||||
IF( NOT("$ENV{${project}_USER_TOP}" STREQUAL "") )
|
setup_boost(program_options filesystem python regex)
|
||||||
MESSAGE("-- ${project}_USER_TOP is set to $ENV{${project}_USER_TOP}")
|
|
||||||
SET(PROJECT_MODULE_PATH "${DESTDIR}$ENV{${project}_USER_TOP}/share/cmake/Modules/")
|
find_package(LibXml2 REQUIRED)
|
||||||
LIST(INSERT CMAKE_MODULE_PATH 0 "${PROJECT_MODULE_PATH}")
|
set(QT_USE_QTXML "true")
|
||||||
ENDIF( NOT("$ENV{${project}_USER_TOP}" STREQUAL "") )
|
find_package(Qt4 REQUIRED)
|
||||||
|
find_package(PythonLibs REQUIRED)
|
||||||
LIST(REMOVE_DUPLICATES CMAKE_MODULE_PATH)
|
find_package(LEFDEF REQUIRED)
|
||||||
ENDMACRO(SETUP_PROJECT_PATHS project)
|
find_package(VLSISAPD REQUIRED)
|
||||||
|
find_package(HURRICANE REQUIRED)
|
||||||
SETUP_PROJECT_PATHS(BOOTSTRAP)
|
find_package(CORIOLIS REQUIRED)
|
||||||
SETUP_PROJECT_PATHS(VLSISAPD)
|
find_package(NIMBUS REQUIRED)
|
||||||
SETUP_PROJECT_PATHS(CORIOLIS)
|
find_package(METIS REQUIRED)
|
||||||
|
find_package(MAUKA REQUIRED)
|
||||||
STRING(REGEX MATCH "^/usr" IS_USR "$ENV{CORIOLIS_TOP}")
|
find_package(KNIK REQUIRED)
|
||||||
STRING(REGEX MATCH "^/opt" IS_OPT "$ENV{CORIOLIS_TOP}")
|
find_package(KATABATIC REQUIRED)
|
||||||
IF(IS_USR OR IS_OPT)
|
find_package(KITE REQUIRED)
|
||||||
MESSAGE("-- Using system-wide /etc.")
|
#find_package(EQUINOX REQUIRED)
|
||||||
SET(SYS_CONF_DIR "/etc" CACHE STRING "System configuration directory (/etc)" FORCE)
|
#find_package(SOLSTICE REQUIRED)
|
||||||
ELSE(IS_USR OR IS_OPT)
|
|
||||||
MESSAGE("-- Using install tree /etc.")
|
add_subdirectory(src)
|
||||||
SET(SYS_CONF_DIR "etc" CACHE STRING "System configuration directory (/etc)" FORCE)
|
|
||||||
ENDIF(IS_USR OR IS_OPT)
|
|
||||||
|
|
||||||
FIND_PACKAGE(Bootstrap REQUIRED)
|
|
||||||
SET_CMAKE_POLICIES()
|
|
||||||
SET_LIB_LINK_MODE()
|
|
||||||
SETUP_APPLE()
|
|
||||||
SETUP_BOOST(program_options filesystem python regex)
|
|
||||||
|
|
||||||
FIND_PACKAGE(LibXml2 REQUIRED)
|
|
||||||
SET(QT_USE_QTXML "true")
|
|
||||||
FIND_PACKAGE(Qt4 REQUIRED) # find and setup Qt4 for this project
|
|
||||||
FIND_PACKAGE(PythonLibs REQUIRED)
|
|
||||||
FIND_PACKAGE(LEFDEF REQUIRED)
|
|
||||||
FIND_PACKAGE(VLSISAPD REQUIRED)
|
|
||||||
FIND_PACKAGE(HURRICANE REQUIRED)
|
|
||||||
FIND_PACKAGE(CORIOLIS REQUIRED)
|
|
||||||
FIND_PACKAGE(NIMBUS REQUIRED)
|
|
||||||
FIND_PACKAGE(METIS REQUIRED)
|
|
||||||
FIND_PACKAGE(MAUKA REQUIRED)
|
|
||||||
FIND_PACKAGE(KNIK REQUIRED)
|
|
||||||
FIND_PACKAGE(KATABATIC REQUIRED)
|
|
||||||
FIND_PACKAGE(KITE REQUIRED)
|
|
||||||
#FIND_PACKAGE(EQUINOX REQUIRED)
|
|
||||||
#FIND_PACKAGE(SOLSTICE REQUIRED)
|
|
||||||
|
|
||||||
ADD_SUBDIRECTORY(src)
|
|
||||||
|
|
Loading…
Reference in New Issue