Skip to content

Commit

Permalink
Merge branch 'alpha-dev' into multiple-asset-dirs
Browse files Browse the repository at this point in the history
  • Loading branch information
dokempf committed Apr 9, 2024
2 parents 864cb51 + fa349a5 commit 3b12bf8
Showing 1 changed file with 7 additions and 11 deletions.
18 changes: 7 additions & 11 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,8 @@ add_library(helios)
find_package(GDAL REQUIRED)
find_package(tinyxml2 REQUIRED)
find_package(glm REQUIRED)
find_package(ZLIB REQUIRED)
find_package(Boost REQUIRED COMPONENTS system thread regex filesystem serialization iostreams random)
find_package(Armadillo REQUIRED)
find_package(BLAS REQUIRED)
find_package(LAPACK REQUIRED)
find_package(Armadillo CONFIG REQUIRED)

# LasTools's CMake is not Modern CMake yet, so we have to use old-style find_package
# that uses the provoded FindLASTools.cmake file
Expand All @@ -80,18 +77,15 @@ target_link_libraries(helios
GDAL::GDAL
tinyxml2::tinyxml2
glm::glm
ZLIB::ZLIB
Boost::system
Boost::thread
Boost::regex
Boost::filesystem
Boost::serialization
Boost::iostreams
Boost::random
BLAS::BLAS
LAPACK::LAPACK
${LASTOOLS_LIBRARIES}
${ARMADILLO_LIBRARIES}
armadillo
)

target_include_directories(helios
Expand Down Expand Up @@ -123,7 +117,7 @@ endif()
# Add the HelIOS++ executable
add_executable(helios++)

target_link_libraries(helios++ PUBLIC helios)
target_link_libraries(helios++ PRIVATE helios)

if(BUILD_PYTHON)
find_package(Python COMPONENTS Interpreter Development)
Expand All @@ -132,7 +126,7 @@ if(BUILD_PYTHON)
add_library(_pyhelios MODULE)

target_link_libraries(_pyhelios
PUBLIC
PRIVATE
helios
Boost::python
Python::Module
Expand All @@ -150,7 +144,9 @@ endif()
add_subdirectory(src)

# Add documentation building through the CMake build system
add_subdirectory(doc)
if(BUILD_DOCS)
add_subdirectory(doc)
endif()

# Add installation rules for the Helios++ executable and Python bindings library

Expand Down

0 comments on commit 3b12bf8

Please sign in to comment.