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

Added more

parent 1b93f6b7
Branches
Tags
No related merge requests found
cmake_minimum_required (VERSION 2.6)
project (castor)
set (MAJOR_CASTOR_VERSION 2.1)
set (MINOR_CASTOR_VERSION 14.2)
# All common variables and values to be used by all CMakeLists.txt files should
# be specified here
......@@ -6,4 +10,5 @@ set (CMAKE_C_FLAGS "-fPIC -Wall -Wextra -Werror -Wno-unused-parameter")
set (CMAKE_CXX_FLAGS "-fPIC -Wall -Wextra -Werror -Wno-unused-parameter")
set_property ( DIRECTORY PROPERTY COMPILE_DEFINITIONS _LARGEFILE64_SOURCE)
add_subdirectory (common)
add_subdirectory (tape)
......@@ -3,7 +3,7 @@ cmake_minimum_required (VERSION 2.6)
include_directories ("..")
include_directories ("../h")
#set (CMAKE_C_FLAGS "-O0 -g -pthread -Wall -Wextra -Werror -Wno-unused-parameter")
# Tape source files require the BIN macro to be set
set_property (
DIRECTORY
APPEND PROPERTY COMPILE_DEFINITIONS BIN="/usr/bin")
......@@ -29,3 +29,5 @@ set (TAPE_LIB_SRC_FILES Ctape_config.c Ctape_devinfo.c Ctape_dmpfil.c
send2tpd.c usrlbl.c tplogger.c tplogger_messages.c sendscsicmd.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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment