Commit 621f4749 authored by Schrödter, Tobias's avatar Schrödter, Tobias
Browse files

Make USE_3RD_PARTY default on windows

parent a27f61a9
......@@ -6,7 +6,7 @@
# -DCMAKE_PREFIX_PATH=[paths where additionally to search for libraries etc]
#
# petrack options:
# -DUSE_3RD_PARTY=ON (default OFF) use the libraries provided in 3rdparty
# -DUSE_3RD_PARTY=ON (default ON on Windows, OFF else) use the libraries provided in 3rdparty
# -DBUILD_UNIT_TESTS=ON (default ON) for unit tests
#
# currently not supported:
......@@ -59,7 +59,7 @@ print_var(DISABLE_STEREO)
option(BUILD_UNIT_TESTS "Build catch2 unit tests" OFF)
print_var(BUILD_UNIT_TESTS)
option(USE_3RD_PARTY "Use the default libraries provided in 3rd party" OFF)
CMAKE_DEPENDENT_OPTION(USE_3RD_PARTY "Use the default libraries provided in 3rd party" ON WIN32 OFF)
print_var(USE_3RD_PARTY)
################################################################################
......@@ -108,14 +108,11 @@ endif()
if (USE_3RD_PARTY)
# Setting path to OpenCV
set(OpenCV_DIR "${CMAKE_SOURCE_DIR}/3rdparty/windows/opencv-4.2.0_64bit")
print_var(OpenCV_DIR)
# Setting path to QWT
set(QWT_ROOT_DIR "${CMAKE_SOURCE_DIR}/3rdparty/windows/Qwt-6.1.4_64bit")
print_var(QWT_ROOT_DIR)
set(QWT_INCLUDE_DIR "${QWT_ROOT_DIR}/include")
print_var(QWT_INCLUDE_DIR)
set(QWT_LIBRARY "${QWT_ROOT_DIR}/lib/libqwt.a")
endif ()
# Qt
......@@ -195,7 +192,7 @@ if(APPLE)
else()
target_compile_definitions(
petrack_core PRIVATE
$<$<AND:$<PLATFORM_ID:WIN32>,$<BOOL:USE_3RD_PARTY>>:QWT QWT_DLL>)
$<$<AND:$<PLATFORM_ID:Windows>,$<BOOL:USE_3RD_PARTY>>:QWT QWT_DLL>)
target_include_directories(petrack_core PUBLIC ${QWT_INCLUDE_DIR})
target_link_libraries(petrack_core PUBLIC ${QWT_LIBRARY})
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment