Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
LimaGroup
Lima-camera-pilatus
Commits
d6c4428c
Commit
d6c4428c
authored
Jun 28, 2017
by
Aitor Henry
Committed by
Sebastien Petitdemange
Mar 01, 2018
Browse files
Should be final CMake.
parent
03044b4d
Changes
1
Show whitespace changes
Inline
Side-by-side
CMakeLists.txt
View file @
d6c4428c
...
...
@@ -21,35 +21,33 @@
# You should have received a copy of the GNU General Public License
# along with this program; if not, see <http://www.gnu.org/licenses/>.
############################################################################
set
(
NAME
"pilatus"
)
set
(
CMAKE_SHARED_LINKER_FLAGS
"-Wl,--add-needed"
)
set
(
pilatus
_srcs src/PilatusCamera.cpp src/PilatusInterface.cpp
set
(
${
NAME
}
_srcs src/PilatusCamera.cpp src/PilatusInterface.cpp
src/PilatusSaving.cpp
)
file
(
STRINGS
"VERSION"
pilatus_vers
)
add_library
(
limapilatus SHARED
${
pilatus_srcs
}
)
add_library
(
lima
${
NAME
}
SHARED
${${
NAME
}
_srcs
}
)
#INCLUDES
target_include_directories
(
lima
pilatus
PUBLIC
"
${
CMAKE_SOURCE_DIR
}
/third-party/CBFLib/include"
)
target_include_directories
(
lima
pilatus
PUBLIC
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/include"
)
target_include_directories
(
lima
${
NAME
}
PUBLIC
"
${
CMAKE_SOURCE_DIR
}
/third-party/CBFLib/include"
)
target_include_directories
(
lima
${
NAME
}
PUBLIC
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/include"
)
#LIBRARIES
find_library
(
PILATUS_LIB cbf
)
if
(
"
${
PILATUS_LIB
}
"
STREQUAL
"PILATUS_LIB-NOTFOUND"
)
message
(
FATAL_ERROR
"
pilatus
: libcbf not found, you can search it in cmake-gui or try to install it if it isn't here."
)
find_library
(
PILATUS_
CBF_
LIB cbf
)
if
(
"
${
PILATUS_
CBF_
LIB
}
"
STREQUAL
"PILATUS_
CBF_
LIB-NOTFOUND"
)
message
(
FATAL_ERROR
"
${
NAME
}
: libcbf not found, you can search it in cmake-gui or try to install it if it isn't here."
)
endif
()
target_link_libraries
(
lima
pilatus
limacore
)
target_link_libraries
(
lima
pilatus
${
PILATUS_LIB
}
)
target_link_libraries
(
lima
${
NAME
}
limacore
)
target_link_libraries
(
lima
${
NAME
}
${
PILATUS_
CBF_
LIB
}
)
set_target_properties
(
limapilatus PROPERTIES VERSION
${
pilatus_vers
}
SOVERSION
"1"
)
include
(
CameraVERSION
)
install
(
TARGETS lima
${
NAME
}
LIBRARY DESTINATION lib
)
install
(
TARGETS limapilatus LIBRARY DESTINATION lib
)
if
(
COMPILE_SIP
)
set
(
NAME
"pilatus"
)
if
(
LIMA_ENABLE_PYTHON
)
include
(
CameraRunSIP
)
install
(
FILES python/__init__.py DESTINATION
"
${
PYTHON_SITE_PACKAGES_DIR
}
/Lima/Pilatus"
)
endif
()
Write
Preview
Supports
Markdown
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