26 lines
501 B
CMake
26 lines
501 B
CMake
CMAKE_MINIMUM_REQUIRED(VERSION 3.10)
|
|
PROJECT(ZMQLayout)
|
|
|
|
ADD_COMPILE_OPTIONS(-fPIC)
|
|
|
|
AUX_SOURCE_DIRECTORY(${PROJECT_SOURCE_DIR}/src src_list)
|
|
|
|
ADD_LIBRARY(${PROJECT_NAME} STATIC ${src_list})
|
|
|
|
TARGET_INCLUDE_DIRECTORIES(${PROJECT_NAME}
|
|
PUBLIC
|
|
${PROJECT_SOURCE_DIR}/include
|
|
${PROJECT_SOURCE_DIR}/../VSClock/include)
|
|
|
|
TARGET_LINK_DIRECTORIES(${PROJECT_NAME}
|
|
PRIVATE
|
|
${CMAKE_SOURCE_DIR}/lib
|
|
)
|
|
|
|
TARGET_LINK_LIBRARIES(${PROJECT_NAME}
|
|
PRIVATE
|
|
stdc++
|
|
VSClock
|
|
zmq
|
|
)
|