-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
168 additions
and
138 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,12 +27,13 @@ endif() | |
PROJECT(ADMS C) | ||
cmake_minimum_required(VERSION 2.8) | ||
|
||
# TODO: store version in a sensible place | ||
# e.g. qucs: file(STRINGS "${qucs-project_SOURCE_DIR}/VERSION" QUCS_VERSION) | ||
|
||
SET(PACKAGE_NAME "adms") | ||
SET(PACKAGE_VERSION "2.3.6") | ||
SET(PACKAGE_VERSION "2.3.7") | ||
SET(PACKAGE_BUGREPORT "[email protected]") | ||
|
||
OPTION ( USE_MAINTAINER_MODE "Enable generation of code (parser source) from Perl scripts." OFF ) | ||
|
||
# Default to static libs ( shared needs work, BUG with MinGW). | ||
OPTION ( BUILD_STATIC_LIBS "Build static libraries." ON ) | ||
IF ( MINGW ) | ||
|
@@ -54,20 +55,18 @@ CHECK_FUNCTION_EXISTS (putenv HAVE_PUTENV) | |
|
||
CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/config.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config.h) | ||
|
||
# Only care about Perl in case maintainer needs to recreate sources | ||
# Perl is used to recreate sources | ||
# * mkelements.pl | ||
# * mktext.pl | ||
# * mkgrammar.pl | ||
if ( USE_MAINTAINER_MODE ) | ||
# Checking for perl modules requires FindPerlModules.cmake | ||
# Check all required modules at once | ||
SET(CMAKE_MODULE_PATH "${ADMS_SOURCE_DIR}/cmake/modules") | ||
include(FindPerlModules) | ||
find_package(PerlModules COMPONENTS XML::LibXML) | ||
if(NOT PERLMODULES_FOUND) | ||
message(FATAL_ERROR "Not all required perl modules were found on your system") | ||
endif(NOT PERLMODULES_FOUND) | ||
endif ( USE_MAINTAINER_MODE ) | ||
# Checking for perl modules requires FindPerlModules.cmake | ||
# Check all required modules at once | ||
SET(CMAKE_MODULE_PATH "${ADMS_SOURCE_DIR}/cmake/modules") | ||
include(FindPerlModules) | ||
find_package(PerlModules COMPONENTS XML::LibXML) | ||
if(NOT PERLMODULES_FOUND) | ||
message(FATAL_ERROR "Not all required perl modules were found on your system") | ||
endif(NOT PERLMODULES_FOUND) | ||
|
||
|
||
find_package(BISON 2.5) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.