-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
32 lines (21 loc) · 860 Bytes
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
project(dicom)
cmake_minimum_required(VERSION 2.6)
add_definitions(-std=c++14)
add_definitions(-DPROJECT_NAME="${PROJECT_NAME}")
set(INCLUDE_DIR ${CMAKE_SOURCE_DIR}/include)
set(SOURCE_DIR ${CMAKE_SOURCE_DIR}/source)
set(SAMPLES_DIR ${CMAKE_SOURCE_DIR}/samples)
set(RESOURCE_DIR ${CMAKE_SOURCE_DIR}/resource)
add_definitions(-DSAMPLES_DIR="${SAMPLES_DIR}")
add_definitions(-DRESOURCE_DIR="${RESOURCE_DIR}")
INCLUDE_DIRECTORIES(${INCLUDE_DIR})
#add project files
file(GLOB_RECURSE SOURCES ${SOURCE_DIR}/*)
file(GLOB_RECURSE HEADERS ${INCLUDE_DIR}/*)
#add other project files
file(GLOB_RECURSE SAMPLES ${SAMPLES_DIR}/*)
file(GLOB_RECURSE RESOURCES ${RESOURCE_DIR}/*)
add_library(${PROJECT_NAME} SHARED ${SOURCES} ${HEADERS} ${RESOURCES} ${SAMPLES})
target_link_libraries(${PROJECT_NAME} ${Project_LIBRARIES} )
enable_testing()
add_subdirectory(tests)