You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
627 B
CMake

SET(PACKAGE_NAME LIB_CAPS)
SET(LIB_NAME capsclient)
FILE(GLOB ${PACKAGE_NAME}_SOURCES
"*.cpp"
"mseed/*.cpp"
)
LIST(REMOVE_ITEM ${PACKAGE_NAME}_SOURCES ${CMAKE_CURRENT_SOURCE_DIR}/pluginapplication.cpp)
IF(WIN32)
SET(${PACKAGE_NAME}_SOURCES ${${PACKAGE_NAME}_SOURCES} strptime.c)
ENDIF(WIN32)
INCLUDE_DIRECTORIES(../../3rd-party/mseed)
ADD_LIBRARY(${LIB_NAME} SHARED ${${PACKAGE_NAME}_SOURCES})
SET_TARGET_PROPERTIES(${LIB_NAME} PROPERTIES COMPILE_FLAGS -fPIC)
SET_TARGET_PROPERTIES(${LIB_NAME} PROPERTIES VERSION 2.0.0 SOVERSION 2)
TARGET_LINK_LIBRARIES(${LIB_NAME} mseed)
INSTALL(TARGETS ${LIB_NAME} DESTINATION lib)