27 lines
773 B
CMake
27 lines
773 B
CMake
|
|
project(DIDKit)
|
||
|
|
|
||
|
|
file(GLOB_RECURSE DIDKit_headers ../src/src/IO/*.h)
|
||
|
|
file(GLOB_RECURSE DIDKit_cpps ../src/src/IO/*.cpp)
|
||
|
|
set(BUILD_SHARED_LIBS ON)
|
||
|
|
if (${BUILD_SHARED_LIBS})
|
||
|
|
include_directories(Defines/)
|
||
|
|
endif()
|
||
|
|
include_directories(../src/src/)
|
||
|
|
|
||
|
|
add_library(DIDKit SHARED ${DIDKit_headers} ${DIDKit_cpps})
|
||
|
|
|
||
|
|
find_package(DCMTK REQUIRED)
|
||
|
|
include_directories(${DCMTK_INCLUDE_DIRS})
|
||
|
|
target_link_libraries(DIDKit ${DCMTK_LIBRARIES})
|
||
|
|
include_directories(${DCM_NETWORK_INCLUDE_DIRS})
|
||
|
|
|
||
|
|
find_package(VTK REQUIRED)
|
||
|
|
include(${VTK_USE_FILE})
|
||
|
|
target_link_libraries(DIDKit ${VTK_LIBRARIES})
|
||
|
|
|
||
|
|
#add_subdirectory(dcm_network)
|
||
|
|
#include_directories(dcm_network)
|
||
|
|
|
||
|
|
include_directories(${DCM_NETWORK_INCLUDE_DIRS})
|
||
|
|
target_link_libraries(DIDKit dcm_network)
|
||
|
|
add_dependencies(DIDKit dcm_network)
|