Compliance with cmake 3.0 (Debian 9.2). Corrects all warnings.

This commit is contained in:
Jean-Paul Chaput 2017-12-02 14:30:05 +01:00
parent 89dfc2179c
commit 2b9c929f80
31 changed files with 70 additions and 143 deletions

View File

@ -3,6 +3,8 @@
set(CMAKE_LEGACY_CYGWIN_WIN32 0) set(CMAKE_LEGACY_CYGWIN_WIN32 0)
project(ANABATIC) project(ANABATIC)
set(ignoreVariables "${BUILD_DOC}")
option(BUILD_DOC "Build the documentation (doxygen)" OFF) option(BUILD_DOC "Build the documentation (doxygen)" OFF)
option(CHECK_DATABASE "Run database in full check mode (very slow)" OFF) option(CHECK_DATABASE "Run database in full check mode (very slow)" OFF)
@ -13,7 +15,6 @@
setup_project_paths(CORIOLIS) setup_project_paths(CORIOLIS)
set_cmake_policies() set_cmake_policies()
set_lib_link_mode()
setup_boost() setup_boost()
setup_qt() setup_qt()

View File

@ -5,6 +5,8 @@
cmake_minimum_required(VERSION 2.4.0) cmake_minimum_required(VERSION 2.4.0)
set(ignoreVariables "${BUILD_DOC}")
add_subdirectory(cmake_modules) add_subdirectory(cmake_modules)
list(INSERT CMAKE_MODULE_PATH 0 "${Bootstrap_SOURCE_DIR}/cmake_modules/") list(INSERT CMAKE_MODULE_PATH 0 "${Bootstrap_SOURCE_DIR}/cmake_modules/")

View File

@ -179,7 +179,7 @@ class Builder:
if self._openmp: command += [ "-D", "WITH_OPENMP:STRING=TRUE" ] if self._openmp: command += [ "-D", "WITH_OPENMP:STRING=TRUE" ]
command += [ "-D", "CMAKE_BUILD_TYPE:STRING=%s" % self.buildMode command += [ "-D", "CMAKE_BUILD_TYPE:STRING=%s" % self.buildMode
, "-D", "BUILD_SHARED_LIBS:STRING=%s" % self.enableShared #, "-D", "BUILD_SHARED_LIBS:STRING=%s" % self.enableShared
, "-D", "CMAKE_INSTALL_PREFIX:STRING=%s" % self.installDir , "-D", "CMAKE_INSTALL_PREFIX:STRING=%s" % self.installDir
, "-D", "CMAKE_INSTALL_DIR:STRING=%s" % cmakeInstallDir , "-D", "CMAKE_INSTALL_DIR:STRING=%s" % cmakeInstallDir
#, "-D", "CMAKE_MODULE_PATH:STRING=%s" % cmakeModules #, "-D", "CMAKE_MODULE_PATH:STRING=%s" % cmakeModules
@ -197,14 +197,13 @@ class Builder:
if os.path.isfile ( cmakeCache ): os.unlink ( cmakeCache ) if os.path.isfile ( cmakeCache ): os.unlink ( cmakeCache )
command += [ "-D", "BUILD_DOC:STRING=%s" % self._enableDoc command += [ "-D", "BUILD_DOC:STRING=%s" % self._enableDoc
, "-D", "CHECK_DATABASE:STRING=%s" % self._checkDatabase
, "-D", "CHECK_DETERMINISM:STRING=%s" % self._checkDeterminism
, "-D", "CMAKE_VERBOSE_MAKEFILE:STRING=%s" % self._verboseMakefile , "-D", "CMAKE_VERBOSE_MAKEFILE:STRING=%s" % self._verboseMakefile
, "-D", "CMAKE_INSTALL_PREFIX:STRING=%s" % self.installDir , "-D", "CMAKE_INSTALL_PREFIX:STRING=%s" % self.installDir
, "-D", "CMAKE_INSTALL_DIR:STRING=%s" % cmakeInstallDir , "-D", "CMAKE_INSTALL_DIR:STRING=%s" % cmakeInstallDir
] ]
if self.libSuffix: if self.libSuffix: command += [ "-D", "LIB_SUFFIX:STRING=%s" % self.libSuffix ]
command += [ "-D", "LIB_SUFFIX:STRING=%s" % self.libSuffix ] if self._checkDatabase == 'ON': command += [ "-D", "CHECK_DATABASE:STRING=ON" ]
if self._checkDeterminism == 'ON': command += [ "-D", "CHECK_DETERMINISM:STRING=ON" ]
command += [ toolSourceDir ] command += [ toolSourceDir ]
self._execute ( command, "Second CMake failed" ) self._execute ( command, "Second CMake failed" )

View File

@ -75,6 +75,7 @@
# #
# Adds -Wall to the C/C++ flags. # Adds -Wall to the C/C++ flags.
# #
set(BUILD_SHARED_LIBS "ON")
#set(DEBUG_FLAGS "-g -D_GLIBCXX_DEBUG -D_GLIBCXX_DEBUG_PEDANTIC") #set(DEBUG_FLAGS "-g -D_GLIBCXX_DEBUG -D_GLIBCXX_DEBUG_PEDANTIC")
set(DEBUG_FLAGS "-g") set(DEBUG_FLAGS "-g")
if(CYGWIN) if(CYGWIN)
@ -174,23 +175,6 @@
endmacro(hurricane_check_libraries) endmacro(hurricane_check_libraries)
#
# Perform some tweaks on shared/static linking.
#
macro(set_lib_link_mode)
if(NOT BUILD_SHARED_LIBS)
# check for qmake
find_program(QT_QMAKE_EXECUTABLE NAMES qmake-qt4 qmake PATHS
/opt/qt4-static-4.3.2/bin
NO_DEFAULT_PATH
)
message(STATUS "Building static libraries.")
else(NOT BUILD_SHARED_LIBS)
message(STATUS "Building dynamic libraries.")
endif(NOT BUILD_SHARED_LIBS)
endmacro(set_lib_link_mode)
# #
# Find Boost, checking different versions. # Find Boost, checking different versions.
# #

View File

@ -13,7 +13,6 @@
setup_qt() setup_qt()
set_cmake_policies() set_cmake_policies()
set_lib_link_mode()
setup_boost() setup_boost()
find_package(Libexecinfo REQUIRED) find_package(Libexecinfo REQUIRED)

View File

@ -15,7 +15,6 @@
set_cmake_policies() set_cmake_policies()
check_distribution() check_distribution()
set_lib_link_mode()
setup_sysconfdir("${CMAKE_INSTALL_PREFIX}") setup_sysconfdir("${CMAKE_INSTALL_PREFIX}")
setup_boost(program_options python regex wave) setup_boost(program_options python regex wave)
setup_qt() setup_qt()

View File

@ -183,19 +183,16 @@
set ( VstParserScannerCpp ${VstParserBinaryDir}/VstParserScanner.cpp ) set ( VstParserScannerCpp ${VstParserBinaryDir}/VstParserScanner.cpp )
set ( VstParserGrammarCpp ${VstParserBinaryDir}/VstParserGrammar.cpp ) set ( VstParserGrammarCpp ${VstParserBinaryDir}/VstParserGrammar.cpp )
add_subdirectory ( alliance ) add_subdirectory ( alliance )
add_custom_target ( VstParser echo "Creating VST parser" ) add_custom_command ( MAIN_DEPENDENCY ${VstParserScanner}
add_custom_command ( SOURCE ${VstParserScanner} OUTPUT ${VstParserScannerCpp}
COMMAND ${FLEX_EXECUTABLE} COMMAND ${FLEX_EXECUTABLE}
ARGS -PVST -o${VstParserScannerCpp} ${VstParserScanner} ARGS -PVST -o${VstParserScannerCpp} ${VstParserScanner}
TARGET VstParser
OUTPUTS ${VstParserScannerCpp}
) )
add_custom_command ( SOURCE ${VstParserGrammar} add_custom_command ( MAIN_DEPENDENCY ${VstParserGrammar}
COMMAND ${BISON_EXECUTABLE} DEPENDS ${VstParserScannerCpp}
ARGS -d -v -p VST -y ${VstParserGrammar} -o ${VstParserGrammarCpp} OUTPUT ${VstParserGrammarCpp}
TARGET VstParser COMMAND ${BISON_EXECUTABLE}
DEPENDS ${VstParserScannerCpp} ARGS -d -v -p VST -y ${VstParserGrammar} -o ${VstParserGrammarCpp}
OUTPUTS ${VstParserGrammarCpp}
) )
include_directories ( ${VstParserBinaryDir} ) include_directories ( ${VstParserBinaryDir} )
set ( vst_parser_cpps ${VstParserScannerCpp} set ( vst_parser_cpps ${VstParserScannerCpp}
@ -212,19 +209,16 @@
set ( IocParserScannerCpp ${IocParserBinaryDir}/IocParserScanner.cpp ) set ( IocParserScannerCpp ${IocParserBinaryDir}/IocParserScanner.cpp )
set ( IocParserGrammarCpp ${IocParserBinaryDir}/IocParserGrammar.cpp ) set ( IocParserGrammarCpp ${IocParserBinaryDir}/IocParserGrammar.cpp )
add_subdirectory ( ioc ) add_subdirectory ( ioc )
add_custom_target ( IocParser echo "Creating IOC parser" ) add_custom_command ( MAIN_DEPENDENCY ${IocParserScanner}
add_custom_command ( SOURCE ${IocParserScanner} OUTPUT ${IocParserScannerCpp}
COMMAND ${FLEX_EXECUTABLE} COMMAND ${FLEX_EXECUTABLE}
ARGS -PIoc -o${IocParserScannerCpp} ${IocParserScanner} ARGS -PIoc -o${IocParserScannerCpp} ${IocParserScanner}
TARGET IocParser
OUTPUTS ${IocParserScannerCpp}
) )
add_custom_command ( SOURCE ${IocParserGrammar} add_custom_command ( MAIN_DEPENDENCY ${IocParserGrammar}
COMMAND ${BISON_EXECUTABLE} DEPENDS ${IocParserScannerCpp}
ARGS -d -v -p Ioc -y ${IocParserGrammar} -o ${IocParserGrammarCpp} OUTPUT ${IocParserGrammarCpp}
TARGET IocParser COMMAND ${BISON_EXECUTABLE}
DEPENDS ${IocParserScannerCpp} ARGS -d -v -p Ioc -y ${IocParserGrammar} -o ${IocParserGrammarCpp}
OUTPUTS ${IocParserGrammarCpp}
) )
include_directories ( ${IocParserBinaryDir} ) include_directories ( ${IocParserBinaryDir} )
set ( ioc_parser_cpps ${IocParserScannerCpp} set ( ioc_parser_cpps ${IocParserScannerCpp}
@ -269,20 +263,19 @@
set ( AcmSigdaParserScannerCpp ${AcmSigdaParserBinaryDir}/AcmSigdaParserScanner.cpp ) set ( AcmSigdaParserScannerCpp ${AcmSigdaParserBinaryDir}/AcmSigdaParserScanner.cpp )
set ( AcmSigdaParserGrammarCpp ${AcmSigdaParserBinaryDir}/AcmSigdaParserGrammar.cpp ) set ( AcmSigdaParserGrammarCpp ${AcmSigdaParserBinaryDir}/AcmSigdaParserGrammar.cpp )
add_subdirectory ( acmsigda ) add_subdirectory ( acmsigda )
add_custom_target ( AcmSigdaParser echo "Creating ACM/SIGDA parser" ) add_custom_command ( MAIN_DEPENDENCY ${AcmSigdaParserScanner}
add_custom_command ( SOURCE ${AcmSigdaParserScanner} OUTPUT ${AcmSigdaParserScannerCpp}
COMMAND ${FLEX_EXECUTABLE} COMMAND ${FLEX_EXECUTABLE}
ARGS -PAcmSigda_ -o${AcmSigdaParserScannerCpp} ${AcmSigdaParserScanner} ARGS -PAcmSigda_ -o${AcmSigdaParserScannerCpp}
TARGET AcmSigdaParser ${AcmSigdaParserScanner}
OUTPUTS ${AcmSigdaParserScannerCpp}
) )
add_custom_command ( SOURCE ${AcmSigdaParserGrammar} add_custom_command ( MAIN_DEPENDENCY ${AcmSigdaParserGrammar}
COMMAND ${BISON_EXECUTABLE} DEPENDS ${AcmSigdaParserScannerCpp}
ARGS -d -v -p AcmSigda_ -y ${AcmSigdaParserGrammar} -o ${AcmSigdaParserGrammarCpp} crlcore/AcmSigda.h
TARGET AcmSigdaParser OUTPUT ${AcmSigdaParserGrammarCpp}
DEPENDS ${AcmSigdaParserScannerCpp} COMMAND ${BISON_EXECUTABLE}
crlcore/AcmSigda.h ARGS -d -v -p AcmSigda_ -y ${AcmSigdaParserGrammar}
OUTPUTS ${AcmSigdaParserGrammarCpp} -o ${AcmSigdaParserGrammarCpp}
) )
include_directories ( ${AcmSigdaParserBinaryDir} ) include_directories ( ${AcmSigdaParserBinaryDir} )
set ( acmsigda_parser_cpps ${AcmSigdaParserScannerCpp} set ( acmsigda_parser_cpps ${AcmSigdaParserScannerCpp}

View File

@ -4,12 +4,14 @@
project(CUMULUS) project(CUMULUS)
cmake_minimum_required(VERSION 2.4.0) cmake_minimum_required(VERSION 2.4.0)
set(ignoreVariables "${BUILD_DOC}")
list(INSERT CMAKE_MODULE_PATH 0 "${DESTDIR}$ENV{CORIOLIS_TOP}/share/cmake/Modules/") list(INSERT CMAKE_MODULE_PATH 0 "${DESTDIR}$ENV{CORIOLIS_TOP}/share/cmake/Modules/")
find_package(Bootstrap REQUIRED) find_package(Bootstrap REQUIRED)
setup_project_paths(CORIOLIS) setup_project_paths(CORIOLIS)
set_cmake_policies() set_cmake_policies()
set_lib_link_mode()
setup_sysconfdir("${CMAKE_INSTALL_PREFIX}") setup_sysconfdir("${CMAKE_INSTALL_PREFIX}")
find_package(PythonLibs 2 REQUIRED) find_package(PythonLibs 2 REQUIRED)

View File

@ -5,6 +5,8 @@
cmake_minimum_required(VERSION 2.4.0) cmake_minimum_required(VERSION 2.4.0)
set(ignoreVariables "${LIB_SUFFIX}")
option(BUILD_DOC "Build the documentation (html+pdf)" OFF) option(BUILD_DOC "Build the documentation (html+pdf)" OFF)
list(INSERT CMAKE_MODULE_PATH 0 "${DESTDIR}$ENV{CORIOLIS_TOP}/share/cmake/Modules/") list(INSERT CMAKE_MODULE_PATH 0 "${DESTDIR}$ENV{CORIOLIS_TOP}/share/cmake/Modules/")

View File

@ -11,7 +11,6 @@
setup_project_paths(CORIOLIS) setup_project_paths(CORIOLIS)
set_cmake_policies() set_cmake_policies()
set_lib_link_mode()
setup_boost(program_options python regex) setup_boost(program_options python regex)
setup_qt() setup_qt()

View File

@ -5,12 +5,13 @@
cmake_minimum_required(VERSION 2.8.9) cmake_minimum_required(VERSION 2.8.9)
set(ignoreVariables "${BUILD_DOC}")
list(INSERT CMAKE_MODULE_PATH 0 "${DESTDIR}$ENV{CORIOLIS_TOP}/share/cmake/Modules/") list(INSERT CMAKE_MODULE_PATH 0 "${DESTDIR}$ENV{CORIOLIS_TOP}/share/cmake/Modules/")
find_package(Bootstrap REQUIRED) find_package(Bootstrap REQUIRED)
setup_project_paths(CORIOLIS) setup_project_paths(CORIOLIS)
set_cmake_policies() set_cmake_policies()
set_lib_link_mode()
setup_boost(program_options filesystem python regex) setup_boost(program_options filesystem python regex)
setup_qt() setup_qt()

View File

@ -13,7 +13,6 @@
setup_qt() setup_qt()
set_cmake_policies() set_cmake_policies()
set_lib_link_mode()
setup_boost(program_options python regex) setup_boost(program_options python regex)
find_package(PythonLibs 2 REQUIRED) find_package(PythonLibs 2 REQUIRED)

View File

@ -13,7 +13,6 @@
list(INSERT CMAKE_MODULE_PATH 0 "${HURRICANE_SOURCE_DIR}/cmake_modules/") list(INSERT CMAKE_MODULE_PATH 0 "${HURRICANE_SOURCE_DIR}/cmake_modules/")
set_cmake_policies() set_cmake_policies()
set_lib_link_mode()
setup_boost(program_options regex) setup_boost(program_options regex)
setup_qt() setup_qt()

View File

@ -1,42 +0,0 @@
# -*- mode: CMAKE explicit-buffer-name: "CMakeLists.txt<hurricane>" -*-
set(CMAKE_LEGACY_CYGWIN_WIN32 0)
project(HURRICANE)
option(BUILD_DOC "Build the documentation (doxygen)" OFF)
cmake_minimum_required(VERSION 2.8.9)
list(INSERT CMAKE_MODULE_PATH 0 "${DESTDIR}$ENV{CORIOLIS_TOP}/share/cmake/Modules")
find_package(Bootstrap REQUIRED)
setup_project_paths(CORIOLIS)
list(INSERT CMAKE_MODULE_PATH 0 "${HURRICANE_SOURCE_DIR}/cmake_modules/")
set_cmake_policies()
set_lib_link_mode()
setup_boost(program_options regex)
setup_qt()
find_package(LibXml2 REQUIRED)
find_package(BZip2 REQUIRED)
find_package(BISON REQUIRED)
find_package(FLEX REQUIRED)
find_package(PythonLibs REQUIRED)
find_package(PythonSitePackages REQUIRED)
find_package(VLSISAPD REQUIRED)
find_package(Libexecinfo REQUIRED)
find_package(Libbfd)
add_subdirectory(src)
add_subdirectory(cmake_modules)
#add_subdirectory(tests)
if(BUILD_DOC)
find_package(Doxygen)
if(DOXYGEN_FOUND)
add_subdirectory(doc)
endif()
endif()
#enable_testing()
#add_test(HurricaneTest ${PROJECT_BINARY_DIR}/tests/htest)

View File

@ -10,7 +10,6 @@
setup_project_paths(CORIOLIS) setup_project_paths(CORIOLIS)
set_cmake_policies() set_cmake_policies()
set_lib_link_mode()
#setup_apple() #setup_apple()
setup_boost(program_options filesystem python regex) setup_boost(program_options filesystem python regex)

View File

@ -13,7 +13,6 @@
setup_project_paths(CORIOLIS) setup_project_paths(CORIOLIS)
set_cmake_policies() set_cmake_policies()
set_lib_link_mode()
setup_boost(program_options filesystem python regex) setup_boost(program_options filesystem python regex)
setup_qt() setup_qt()

View File

@ -17,15 +17,15 @@
//! \typedef typedef GenericFilter<AutoSegment*> AutoSegmentFilter; //! \typedef typedef GenericFilter<AutoSegment*> AutoSegmentFilter;
//! Shorthand for AutoSegment Hurricane Generic Filter //! Shorthand for AutoSegment Hurricane Generic Filter
//! (filter with \c auto_ptr<> like support). //! (filter with \c unique_ptr<> like support).
//! \typedef typedef GenericLocator<AutoSegment*> AutoSegmentLocator; //! \typedef typedef GenericLocator<AutoSegment*> AutoSegmentLocator;
//! Shorthand for AutoSegment Hurricane Generic Locator //! Shorthand for AutoSegment Hurricane Generic Locator
//! (locator with \c auto_ptr<> like support). //! (locator with \c unique_ptr<> like support).
//! \typedef typedef GenericCollection<AutoSegment*> AutoSegments; //! \typedef typedef GenericCollection<AutoSegment*> AutoSegments;
//! Shorthand for AutoSegment Hurricane Generic Collection //! Shorthand for AutoSegment Hurricane Generic Collection
//! (collection with \c auto_ptr<> like support). //! (collection with \c unique_ptr<> like support).
/*! \class AutoSegments_OnContact /*! \class AutoSegments_OnContact
* \brief All AutoSegment anchored on a Contact * \brief All AutoSegment anchored on a Contact

View File

@ -8,12 +8,13 @@
cmake_minimum_required(VERSION 2.8.9) cmake_minimum_required(VERSION 2.8.9)
set(ignoreVariables "${BUILD_DOC}")
list(INSERT CMAKE_MODULE_PATH 0 "${DESTDIR}$ENV{CORIOLIS_TOP}/share/cmake/Modules/") list(INSERT CMAKE_MODULE_PATH 0 "${DESTDIR}$ENV{CORIOLIS_TOP}/share/cmake/Modules/")
find_package(Bootstrap REQUIRED) find_package(Bootstrap REQUIRED)
setup_project_paths(CORIOLIS) setup_project_paths(CORIOLIS)
set_cmake_policies() set_cmake_policies()
set_lib_link_mode()
setup_boost(program_options filesystem python regex) setup_boost(program_options filesystem python regex)
setup_qt() setup_qt()

View File

@ -13,7 +13,6 @@
setup_project_paths(CORIOLIS) setup_project_paths(CORIOLIS)
set_cmake_policies() set_cmake_policies()
set_lib_link_mode()
setup_boost(program_options filesystem python regex) setup_boost(program_options filesystem python regex)
setup_qt() setup_qt()

View File

@ -5,13 +5,14 @@
cmake_minimum_required(VERSION 2.8.9) cmake_minimum_required(VERSION 2.8.9)
set(ignoreVariables "${BUILD_DOC}")
list(INSERT CMAKE_MODULE_PATH 0 "${DESTDIR}$ENV{CORIOLIS_TOP}/share/cmake/Modules/") list(INSERT CMAKE_MODULE_PATH 0 "${DESTDIR}$ENV{CORIOLIS_TOP}/share/cmake/Modules/")
find_package(Bootstrap REQUIRED) find_package(Bootstrap REQUIRED)
setup_project_paths(CORIOLIS) setup_project_paths(CORIOLIS)
print_cmake_module_path() print_cmake_module_path()
set_cmake_policies() set_cmake_policies()
set_lib_link_mode()
setup_boost(program_options filesystem python regex) setup_boost(program_options filesystem python regex)
setup_qt() setup_qt()

View File

@ -12,7 +12,6 @@
print_cmake_module_path() print_cmake_module_path()
set_cmake_policies() set_cmake_policies()
set_lib_link_mode()
setup_sysconfdir("${CMAKE_INSTALL_PREFIX}") setup_sysconfdir("${CMAKE_INSTALL_PREFIX}")
find_package(BISON REQUIRED) find_package(BISON REQUIRED)

View File

@ -78,13 +78,12 @@
) )
set ( DefParserGrammar ${LEFDEF_SOURCE_DIR}/src/def/def/def.y ) set ( DefParserGrammar ${LEFDEF_SOURCE_DIR}/src/def/def/def.y )
add_custom_command ( SOURCE ${DefParserGrammar} add_custom_command ( MAIN_DEPENDENCY ${DefParserGrammar}
COMMAND ${BISON_EXECUTABLE} COMMAND ${BISON_EXECUTABLE}
ARGS -v -p defyy -d ${DefParserGrammar} -o def.tab.cpp ARGS -v -p defyy -d ${DefParserGrammar} -o def.tab.cpp
COMMAND mv COMMAND mv
ARGS def.tab.hpp ${LEFDEF_SOURCE_DIR}/src/def/def/def.tab.h ARGS def.tab.hpp ${LEFDEF_SOURCE_DIR}/src/def/def/def.tab.h
TARGET DefParser OUTPUT def.tab.cpp
OUTPUTS def.tab.cpp
) )
set_source_files_properties ( def.tab.cpp GENERATED ) set_source_files_properties ( def.tab.cpp GENERATED )

View File

@ -55,13 +55,12 @@
) )
set ( LefParserGrammar ${LEFDEF_SOURCE_DIR}/src/lef/lef/lef.y ) set ( LefParserGrammar ${LEFDEF_SOURCE_DIR}/src/lef/lef/lef.y )
add_custom_command ( SOURCE ${LefParserGrammar} add_custom_command ( MAIN_DEPENDENCY ${LefParserGrammar}
COMMAND ${BISON_EXECUTABLE} COMMAND ${BISON_EXECUTABLE}
ARGS -v -p lefyy -d ${LefParserGrammar} -o lef.tab.cpp ARGS -v -p lefyy -d ${LefParserGrammar} -o lef.tab.cpp
COMMAND mv COMMAND mv
ARGS lef.tab.hpp ${LEFDEF_SOURCE_DIR}/src/lef/lef/lef.tab.h ARGS lef.tab.hpp ${LEFDEF_SOURCE_DIR}/src/lef/lef/lef.tab.h
TARGET LefParser OUTPUT lef.tab.cpp
OUTPUTS lef.tab.cpp
) )
set_source_files_properties ( lef.tab.cpp GENERATED ) set_source_files_properties ( lef.tab.cpp GENERATED )

View File

@ -11,7 +11,6 @@
print_cmake_module_path() print_cmake_module_path()
set_cmake_policies() set_cmake_policies()
set_lib_link_mode()
setup_boost(program_options filesystem regex python) setup_boost(program_options filesystem regex python)
setup_qt() setup_qt()

View File

@ -11,7 +11,6 @@
print_cmake_module_path() print_cmake_module_path()
set_cmake_policies() set_cmake_policies()
set_lib_link_mode()
setup_boost() setup_boost()
find_package(PythonLibs 2 REQUIRED) find_package(PythonLibs 2 REQUIRED)

View File

@ -10,7 +10,6 @@
setup_project_paths(CORIOLIS) setup_project_paths(CORIOLIS)
set_cmake_policies() set_cmake_policies()
set_lib_link_mode()
setup_boost(program_options filesystem python regex) setup_boost(program_options filesystem python regex)
setup_qt() setup_qt()

View File

@ -5,12 +5,13 @@
cmake_minimum_required(VERSION 2.8.9) cmake_minimum_required(VERSION 2.8.9)
set(ignoreVariables "${BUILD_DOC}")
list(INSERT CMAKE_MODULE_PATH 0 "${DESTDIR}$ENV{CORIOLIS_TOP}/share/cmake/Modules/") list(INSERT CMAKE_MODULE_PATH 0 "${DESTDIR}$ENV{CORIOLIS_TOP}/share/cmake/Modules/")
find_package(Bootstrap REQUIRED) find_package(Bootstrap REQUIRED)
setup_project_paths(CORIOLIS) setup_project_paths(CORIOLIS)
set_cmake_policies() set_cmake_policies()
set_lib_link_mode()
setup_boost(program_options filesystem python regex) setup_boost(program_options filesystem python regex)
setup_qt() setup_qt()

View File

@ -14,7 +14,6 @@
set_cmake_policies() set_cmake_policies()
# The flaw is in UseLATEX.cmake. # The flaw is in UseLATEX.cmake.
cmake_policy(SET CMP0002 OLD) cmake_policy(SET CMP0002 OLD)
set_lib_link_mode()
setup_sysconfdir("${CMAKE_INSTALL_PREFIX}") setup_sysconfdir("${CMAKE_INSTALL_PREFIX}")
find_package(PythonLibs 2 REQUIRED) find_package(PythonLibs 2 REQUIRED)

View File

@ -7,12 +7,13 @@
cmake_minimum_required(VERSION 2.8.9) cmake_minimum_required(VERSION 2.8.9)
set(ignoreVariables "${LIB_SUFFIX} ${BUILD_DOC}")
list(INSERT CMAKE_MODULE_PATH 0 "${DESTDIR}$ENV{CORIOLIS_TOP}/share/cmake/Modules/") list(INSERT CMAKE_MODULE_PATH 0 "${DESTDIR}$ENV{CORIOLIS_TOP}/share/cmake/Modules/")
find_package(Bootstrap REQUIRED) find_package(Bootstrap REQUIRED)
setup_project_paths(CORIOLIS) setup_project_paths(CORIOLIS)
set_cmake_policies() set_cmake_policies()
set_lib_link_mode()
setup_boost(program_options python) setup_boost(program_options python)
setup_qt() setup_qt()

View File

@ -10,7 +10,6 @@
setup_project_paths(CORIOLIS) setup_project_paths(CORIOLIS)
set_cmake_policies() set_cmake_policies()
set_lib_link_mode()
setup_sysconfdir("${CMAKE_INSTALL_PREFIX}") setup_sysconfdir("${CMAKE_INSTALL_PREFIX}")
setup_boost(program_options python regex) setup_boost(program_options python regex)
setup_qt() setup_qt()

View File

@ -33,19 +33,16 @@ set ( LibertyParserGrammar ${VLSISAPD_SOURCE_DIR}/src/liberty/src/LibertyPars
set ( LibertyParserScannerCpp LibertyParserScanner.cpp ) set ( LibertyParserScannerCpp LibertyParserScanner.cpp )
set ( LibertyParserGrammarCpp LibertyParserGrammar.cpp ) set ( LibertyParserGrammarCpp LibertyParserGrammar.cpp )
add_custom_target ( LibertyParser echo "Creating Liberty parser" ) add_custom_command ( MAIN_DEPENDENCY ${LibertyParserScanner}
add_custom_command ( SOURCE ${LibertyParserScanner} COMMAND ${FLEX_EXECUTABLE}
COMMAND ${FLEX_EXECUTABLE} ARGS -PLiberty_ -o${LibertyParserScannerCpp} ${LibertyParserScanner}
ARGS -PLiberty_ -o${LibertyParserScannerCpp} ${LibertyParserScanner} OUTPUT ${LibertyParserScannerCpp}
TARGET LibertyParser
OUTPUTS ${LibertyParserScannerCpp}
) )
add_custom_command ( SOURCE ${LibertyParserGrammar} add_custom_command ( MAIN_DEPENDENCY ${LibertyParserGrammar}
COMMAND ${BISON_EXECUTABLE} DEPENDS ${LibertyParserScannerCpp}
ARGS -d -v -p Liberty_ -y ${LibertyParserGrammar} -o ${LibertyParserGrammarCpp} COMMAND ${BISON_EXECUTABLE}
TARGET LibertyParser ARGS -d -v -p Liberty_ -y ${LibertyParserGrammar} -o ${LibertyParserGrammarCpp}
DEPENDS ${LibertyParserScannerCpp} OUTPUT ${LibertyParserGrammarCpp}
OUTPUTS ${LibertyParserGrammarCpp}
) )
set ( liberty_parser_cpps ${LibertyParserScannerCpp} set ( liberty_parser_cpps ${LibertyParserScannerCpp}
${LibertyParserGrammarCpp} ${LibertyParserGrammarCpp}