Skip to content

Commit

Permalink
Update cmakelists
Browse files Browse the repository at this point in the history
  • Loading branch information
ipadjen committed Oct 4, 2024
1 parent 1f5b4ce commit cceac70
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 9 deletions.
21 changes: 12 additions & 9 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,17 @@ set(CMAKE_BUILD_TYPE "Release")
# cmake_policy(SET CMP0003 NEW)
#endif()

if(POLICY CMP0167)
cmake_policy(SET CMP0167 NEW)
endif()

if (MSVC)
add_definitions(-DNOMINMAX)
add_definitions("/EHsc")
endif (MSVC)

# BOOST
find_package(Boost 1.66 REQUIRED COMPONENTS filesystem locale QUIET)
find_package(Boost 1.72 REQUIRED COMPONENTS filesystem locale QUIET)
if (WIN32)
FIND_PACKAGE(Boost)
if (Boost_FOUND)
Expand Down Expand Up @@ -79,17 +83,16 @@ set_target_properties(
)

target_link_libraries(city4cfd
${CGAL_LIBRARIES}
${CGAL_3RD_PARTY_LIBRARIES}
${GDAL_LIBRARY}
${Boost_SYSTEM_LIBRARY}
${Boost_FILESYSTEM_LIBRARY}
${Boost_LOCALE_LIBRARY}
LASlib
CGAL::CGAL
CGAL::CGAL_Core
CGAL::Eigen3_support
GDAL::GDAL
Boost::filesystem
Boost::locale
LASlib
roofer_api
val3dity
${OpenMP_support}
OpenMP::OpenMP_CXX
)

install(TARGETS city4cfd DESTINATION bin)
3 changes: 3 additions & 0 deletions thirdparty/val3dity/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ endif(COMMAND cmake_policy)
cmake_minimum_required (VERSION 3.16)
project( val3dity )

if(POLICY CMP0167)
cmake_policy(SET CMP0167 NEW)
endif()


add_definitions(-std=c++17)
Expand Down

0 comments on commit cceac70

Please sign in to comment.