Skip to content
Snippets Groups Projects
Commit 33256c2f authored by Steven Murray's avatar Steven Murray
Browse files

Added more

parent 51a9ed92
Branches
Tags
No related merge requests found
......@@ -3,12 +3,18 @@ project (castor)
set (MAJOR_CASTOR_VERSION 2.1)
set (MINOR_CASTOR_VERSION 14.2)
set (CASTOR_DEST_BIN_DIR /usr/bin)
set (CASTOR_DEST_LIB_DIR /usr/lib64)
# All common variables and values to be used by all CMakeLists.txt files should
# be specified here
set (CMAKE_C_FLAGS "-fPIC -Wall -Wextra -Werror -Wno-unused-parameter")
set (CMAKE_CXX_FLAGS "-fPIC -Wall -Wextra -Werror -Wno-unused-parameter")
set (CMAKE_C_FLAGS
"-pthread -fPIC -Wall -Wextra -Werror -Wno-unused-parameter")
set (CMAKE_CXX_FLAGS ${CMAKE_C_FLAGS})
set_property ( DIRECTORY PROPERTY COMPILE_DEFINITIONS _LARGEFILE64_SOURCE)
# Do not add rpath information to compiled executables
set (CMAKE_SKIP_RPATH TRUE)
add_subdirectory (common)
add_subdirectory (tape)
......@@ -47,3 +47,4 @@ set (COMMON_LIB_SRC_FILES
add_library (castorcommon SHARED ${COMMON_LIB_SRC_FILES})
set_target_properties (castorcommon
PROPERTIES SOVERSION ${MAJOR_CASTOR_VERSION})
install (TARGETS castorcommon DESTINATION $CASTOR_DEST_LIB_DIR)
......@@ -30,4 +30,5 @@ set (TAPE_LIB_SRC_FILES Ctape_config.c Ctape_devinfo.c Ctape_dmpfil.c
add_library (castortape SHARED ${TAPE_LIB_SRC_FILES} ${TAPE_LIB_USR_SRC_FILES})
set_target_properties (castortape PROPERTIES SOVERSION ${MAJOR_CASTOR_VERSION})
#target_link_libraries (castortape
target_link_libraries (castortape castorcommon)
install (TARGETS castortape DESTINATION $CASTOR_DEST_LIB_DIR)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment