Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
LOFAR
Manage
Activity
Members
Labels
Plan
Issues
Wiki
Jira issues
Open Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
RadioObservatory
LOFAR
Commits
4cfa8c0a
Commit
4cfa8c0a
authored
16 years ago
by
Lars Bahren
Browse files
Options
Downloads
Patches
Plain Diff
Bug 1199: Cleaning up of main CMake configuration file in top directory
parent
48d156de
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
CMakeLists.txt
+54
-13
54 additions, 13 deletions
CMakeLists.txt
with
54 additions
and
13 deletions
CMakeLists.txt
+
54
−
13
View file @
4cfa8c0a
...
@@ -26,7 +26,9 @@ endif (USG_ROOT)
...
@@ -26,7 +26,9 @@ endif (USG_ROOT)
## ------------------------------------------------------------------------------
## ------------------------------------------------------------------------------
option
(
WITH_TINYCEP
"Use tinyCEP?"
FALSE
)
option
(
LOFAR_VERBOSE_CONFIGURE
"Verbose output during configuration?"
0
)
option
(
LOFAR_BUILD_TESTS
"Build the test programs?"
1
)
option
(
LOFAR_WITH_TINYCEP
"Use tinyCEP?"
0
)
## ------------------------------------------------------------------------------
## ------------------------------------------------------------------------------
## Additional CMake modules
## Additional CMake modules
...
@@ -84,8 +86,10 @@ find_program ( yacc_bin yacc )
...
@@ -84,8 +86,10 @@ find_program ( yacc_bin yacc )
## ------------------------------------------------------------------------------
## ------------------------------------------------------------------------------
## Search for external libraries
## Search for external libraries
set
(
BOOST_FIND_QUIETLY TRUE
)
if
(
NOT LOFAR_VERBOSE_CONFIGURE
)
set
(
CASACORE_FIND_QUIETLY TRUE
)
set
(
BOOST_FIND_QUIETLY TRUE
)
set
(
CASACORE_FIND_QUIETLY TRUE
)
endif
(
NOT LOFAR_VERBOSE_CONFIGURE
)
## Boost++
## Boost++
...
@@ -154,23 +158,50 @@ include_directories (
...
@@ -154,23 +158,50 @@ include_directories (
)
)
## ------------------------------------------------------------------------------
## ------------------------------------------------------------------------------
## Directories to be included in the build
## Check for the presence of various packages in the code tree
## --- Appl --------------------------------------
find_path
(
HAVE_APPLCOMMON CMakeLists.txt
${
LOFAR_SOURCE_DIR
}
/Appl/ApplCommon
)
if
(
HAVE_APPLCOMMON
)
set
(
HAVE_APPLCOMMON TRUE CACHE BOOL
"Have package ApplCommon?"
FORCE
)
endif
(
HAVE_APPLCOMMON
)
find_path
(
HAVE_TINYCEP
${
LOFAR_SOURCE_DIR
}
/CEP/tinyCEP
)
## --- CEP ---------------------------------------
find_path
(
HAVE_CEPFRAME CMakeLists.txt
${
LOFAR_SOURCE_DIR
}
/CEP/CEPFrame
)
if
(
HAVE_CEPFRAME
)
set
(
HAVE_CEPFRAME TRUE CACHE BOOL
"Have package CEPFrame?"
FORCE
)
endif
(
HAVE_CEPFRAME
)
find_path
(
HAVE_TINYCEP CMakeLists.txt
${
LOFAR_SOURCE_DIR
}
/CEP/tinyCEP
)
if
(
HAVE_TINYCEP
)
if
(
HAVE_TINYCEP
)
set
(
HAVE_TINYCEP TRUE CACHE BOOL
"Have package TINYCEP?"
FORCE
)
set
(
HAVE_TINYCEP TRUE CACHE BOOL
"Have package TINYCEP?"
FORCE
)
endif
(
HAVE_TINYCEP
)
endif
(
HAVE_TINYCEP
)
find_path
(
HAVE_APS
${
LOFAR_SOURCE_DIR
}
/LCS/ACC/APS
)
## --- LCS ---------------------------------------
find_path
(
HAVE_APS CMakeLists.txt
${
LOFAR_SOURCE_DIR
}
/LCS/ACC/APS
)
if
(
HAVE_APS
)
if
(
HAVE_APS
)
set
(
HAVE_APS TRUE CACHE BOOL
"Have package APS?"
FORCE
)
set
(
HAVE_APS TRUE CACHE BOOL
"Have package APS?"
FORCE
)
endif
(
HAVE_APS
)
endif
(
HAVE_APS
)
## ------------------------------------------------------------------------------
## Directories to be included in the build
add_subdirectory
(
Appl
)
add_subdirectory
(
Appl
)
add_subdirectory
(
LCS
)
add_subdirectory
(
CEP
)
if
(
HAVE_CEPFRAME AND HAVE_TINYCEP
)
add_subdirectory
(
CEP
)
endif
(
HAVE_CEPFRAME AND HAVE_TINYCEP
)
if
(
HAVE_APS
)
add_subdirectory
(
LCS
)
endif
(
HAVE_APS
)
## ==============================================================================
## ==============================================================================
##
##
...
@@ -178,8 +209,18 @@ add_subdirectory (CEP)
...
@@ -178,8 +209,18 @@ add_subdirectory (CEP)
##
##
## ==============================================================================
## ==============================================================================
message
(
STATUS
"LOFAR_SOURCE_DIR =
${
LOFAR_SOURCE_DIR
}
"
)
if
(
LOFAR_VERBOSE_CONFIGURE
)
message
(
STATUS
"CMAKE_MODULE_PATH =
${
CMAKE_MODULE_PATH
}
"
)
message
(
STATUS
"-----------------------------------------------------------------"
)
message
(
STATUS
"Flex =
${
flex_bin
}
"
)
message
(
STATUS
"[LOFAR] Configuration summary"
)
message
(
STATUS
"Bison =
${
bison_bin
}
"
)
message
(
STATUS
"LOFAR_SOURCE_DIR =
${
LOFAR_SOURCE_DIR
}
"
)
message
(
STATUS
"Yacc =
${
yacc_bin
}
"
)
message
(
STATUS
"CMAKE_MODULE_PATH =
${
CMAKE_MODULE_PATH
}
"
)
message
(
STATUS
"Have package ApplCommon =
${
HAVE_APPLCOMMON
}
"
)
message
(
STATUS
"Have package APS =
${
HAVE_APS
}
"
)
message
(
STATUS
"Have package CEPFrame =
${
HAVE_CEPFRAME
}
"
)
message
(
STATUS
"Have package tinyCEP =
${
HAVE_TINYCEP
}
"
)
message
(
STATUS
"Boost++ includes =
${
BOOST_INCLUDES
}
"
)
message
(
STATUS
"Boost++ libraries =
${
BOOST_LIBRARIES
}
"
)
message
(
STATUS
"Have Boost++ =
${
HAVE_BOOST
}
"
)
message
(
STATUS
"Have casacore =
${
HAVE_CASACORE
}
"
)
message
(
STATUS
"-----------------------------------------------------------------"
)
endif
(
LOFAR_VERBOSE_CONFIGURE
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment