Skip to content
GitLab
Explore
Sign in
Register
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
7e17ef13
Commit
7e17ef13
authored
4 years ago
by
Jorrit Schaap
Browse files
Options
Downloads
Patches
Plain Diff
TMSS-156
: added and used FindJsonCpp.cmake for libjsoncpp1 and libjsoncpp-dev
parent
c5548888
No related branches found
No related tags found
1 merge request
!116
TMSS-156: Resolve TMSS-156
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CMake/FindJsonCpp.cmake
+47
-0
47 additions, 0 deletions
CMake/FindJsonCpp.cmake
MAC/APL/MainCU/src/MACScheduler/CMakeLists.txt
+1
-1
1 addition, 1 deletion
MAC/APL/MainCU/src/MACScheduler/CMakeLists.txt
with
48 additions
and
1 deletion
CMake/FindJsonCpp.cmake
0 → 100644
+
47
−
0
View file @
7e17ef13
# - Try to find readline, a library for easy editing of command lines.
# Variables used by this module:
# JSONCPP_ROOT_DIR - JsonCpp root directory
# Variables defined by this module:
# JSONCPP_FOUND - system has JsonCpp
# JSONCPP_INCLUDE_DIR - the JsonCpp include directory (cached)
# JSONCPP_INCLUDE_DIRS - the JsonCpp include directories
# (identical to JSONCPP_INCLUDE_DIR)
# JSONCPP_LIBRARY - the JsonCpp library (cached)
# JSONCPP_LIBRARIES - the JsonCpp library
# Copyright (C) 2009
# ASTRON (Netherlands Institute for Radio Astronomy)
# P.O.Box 2, 7990 AA Dwingeloo, The Netherlands
#
# This file is part of the LOFAR software suite.
# The LOFAR software suite is free software: you can redistribute it and/or
# modify it under the terms of the GNU General Public License as published
# by the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# The LOFAR software suite is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License along
# with the LOFAR software suite. If not, see <http://www.gnu.org/licenses/>.
#
# $Id$
if
(
NOT JSONCPP_FOUND
)
find_path
(
JSONCPP_INCLUDE_DIR jsoncpp/json/json.h
HINTS
${
JSONCPP_ROOT_DIR
}
PATH_SUFFIXES include
)
find_library
(
JSONCPP_LIBRARY jsoncpp
HINTS
${
JSONCPP_ROOT_DIR
}
PATH_SUFFIXES lib
)
mark_as_advanced
(
JSONCPP_INCLUDE_DIR JSONCPP_LIBRARY
)
include
(
FindPackageHandleStandardArgs
)
find_package_handle_standard_args
(
jsoncpp DEFAULT_MSG
JSONCPP_LIBRARY JSONCPP_INCLUDE_DIR
)
set
(
JSONCPP_INCLUDE_DIRS
${
JSONCPP_INCLUDE_DIR
}
)
set
(
JSONCPP_LIBRARIES
${
JSONCPP_LIBRARY
}
)
endif
(
NOT JSONCPP_FOUND
)
This diff is collapsed.
Click to expand it.
MAC/APL/MainCU/src/MACScheduler/CMakeLists.txt
+
1
−
1
View file @
7e17ef13
# $Id$
lofar_
add_library
(
libj
sonCpp
)
lofar_
find_package
(
J
sonCpp
)
lofar_add_bin_program
(
MACScheduler
MACSchedulerMain.cc
...
...
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