Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
JAliEn
JAliEn-ROOT
Commits
887ef04c
Commit
887ef04c
authored
May 21, 2019
by
Nikola Hardi
Browse files
Improve CMakeLists to fix MacOS build
parent
5e1ffa6e
Changes
1
Hide whitespace changes
Inline
Side-by-side
CMakeLists.txt
View file @
887ef04c
...
...
@@ -5,7 +5,8 @@ set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake/modules")
find_package
(
JSONC REQUIRED
)
find_package
(
OpenSSL REQUIRED
)
find_package
(
libwebsockets REQUIRED
)
find_package
(
ROOT REQUIRED COMPONENTS Net Netx Tree XMLIO
)
find_package
(
ROOT REQUIRED COMPONENTS Net Netx Tree XMLIO PROOF
)
find_package
(
zlib REQUIRED
)
foreach
(
FEATURE xrootd xml
)
if
(
NOT ROOT_
${
FEATURE
}
_FOUND
)
message
(
FATAL_ERROR
"ROOT was built without
${
FEATURE
}
support (required)"
)
...
...
@@ -43,7 +44,7 @@ include_directories(${CMAKE_CURRENT_SOURCE_DIR})
include_directories
(
${
LIBNAME
}
${
OPENSSL_INCLUDE_DIR
}
)
ROOT_GENERATE_DICTIONARY
(
G__
${
LIBNAME
}
"
${
HDRS
}
"
LINKDEF LinkDef.h
)
add_library
(
${
LIBNAME
}
SHARED
"
${
SRCS
}
"
G__
${
LIBNAME
}
.cxx
)
target_link_libraries
(
${
LIBNAME
}
${
ROOT_LIBRARIES
}
json-c websockets
)
target_link_libraries
(
${
LIBNAME
}
${
ROOT_LIBRARIES
}
json-c websockets
${
OPENSSL_LIBRARIES
}
${
ZLIB_LIBRARIES
}
)
install
(
TARGETS
${
LIBNAME
}
LIBRARY DESTINATION lib
)
install
(
FILES
${
PROJECT_BINARY_DIR
}
/lib
${
LIBNAME
}
.rootmap DESTINATION lib
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment