Skip to content

Commit

Permalink
Remove useless dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
lamyj committed May 12, 2024
1 parent 6f7a2f9 commit e8e40d5
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions src/lib/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
find_package(Boost COMPONENTS date_time filesystem system regex REQUIRED)
find_package(Python 3.6 COMPONENTS Interpreter Development REQUIRED)
message("Python interpreter: ${Python_EXECUTABLE}")

file(GLOB_RECURSE headers "*.h")
file(GLOB_RECURSE templates "*.txx")
Expand All @@ -9,14 +7,12 @@ list(SORT header_files)
list(SORT template_files)
list(SORT files)

include_directories(
${CMAKE_CURRENT_SOURCE_DIR} ${Boost_INCLUDE_DIRS} ${Python_INCLUDE_DIRS})
include_directories(${CMAKE_CURRENT_SOURCE_DIR})
add_definitions(-DBOOST_FILESYSTEM_VERSION=3 -DBOOST_ALL_DYN_LINK)
link_directories(${Boost_LIBRARY_DIRS} ${Python_LIBRARY_DIRS})

add_library(libdicomifier ${files} ${headers} ${templates})

target_link_libraries(libdicomifier ${Boost_LIBRARIES} ${Python_LIBRARIES})
target_link_libraries(
libdicomifier Boost::date_time Boost::filesystem Boost::regex Boost::system)

if(APPLE)
# WARNING: Boost::regex may add -licudata -licui18n -licuu, which cause
Expand Down

0 comments on commit e8e40d5

Please sign in to comment.