Separate PACS Module.

This commit is contained in:
Krad
2022-09-21 08:52:11 +08:00
parent 6873e69571
commit 5c854017d8
34 changed files with 107 additions and 28 deletions

View File

@@ -1,7 +1,11 @@
project(DIDKit)
file(GLOB_RECURSE DIDKit_headers ../src/src/IO/*.h)
file(GLOB_RECURSE DIDKit_cpps ../src/src/IO/*.cpp)
file(GLOB_RECURSE DIDKit_IO_headers ../src/src/IO/*.h)
file(GLOB_RECURSE DIDKit_IO_cpps ../src/src/IO/*.cpp)
file(GLOB_RECURSE DIDKit_PACS_headers ../src/src/PACS/*.h)
file(GLOB_RECURSE DIDKit_PACS_cpps ../src/src/PACS/*.cpp)
file(GLOB_RECURSE DIDKit_App_headers App/*.h)
file(GLOB_RECURSE DIDKit_App_cpps App/*.cpp)
set(BUILD_SHARED_LIBS ON)
if (${BUILD_SHARED_LIBS})
include_directories(Defines/)
@@ -10,18 +14,31 @@ include_directories(../src/src/)
add_library(DIDKit SHARED ${DIDKit_headers} ${DIDKit_cpps})
option(BUILD_DIDKit_APP "Build DIDKit App" ON)
set(BUILD_DIDKit_APP ON)
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 ${DCMTK_LIBRARIES})
target_link_libraries(DIDKit ${VTK_LIBRARIES})
target_link_libraries(DIDKit dcm_network)
add_dependencies(DIDKit dcm_network)
add_dependencies(DIDKit dcm_network)
if(${BUILD_DIDKit_APP})
add_executable(DIDKitApp ${DIDKit_headers} ${DIDKit_cpps} ${DIDKit_App_headers} ${DIDKit_App_cpps}
${DIDKit_PACS_headers} ${DIDKit_PACS_cpps})
target_link_libraries(DIDKitApp ${DCMTK_LIBRARIES})
target_link_libraries(DIDKitApp ${VTK_LIBRARIES})
target_link_libraries(DIDKitApp dcm_network)
add_dependencies(DIDKitApp dcm_network)
target_link_libraries(DIDKitApp Qt5::Core Qt5::Widgets Qt5::Gui)
endif()