Changed used libs for different systems

This commit is contained in:
Torsten Schulz
2024-01-26 13:05:18 +01:00
parent 853974046d
commit 57ef1b0616

View File

@@ -14,13 +14,6 @@ add_executable(${PROJECT_NAME}
target_compile_features(${PROJECT_NAME} PRIVATE cxx_std_20) target_compile_features(${PROJECT_NAME} PRIVATE cxx_std_20)
target_link_libraries(${PROJECT_NAME}
wt
wthttp
curl
xml2
)
find_package(Boost COMPONENTS system filesystem REQUIRED) find_package(Boost COMPONENTS system filesystem REQUIRED)
if(UNIX) if(UNIX)
# Ubuntu-spezifische Include-Verzeichnisse # Ubuntu-spezifische Include-Verzeichnisse
@@ -29,9 +22,21 @@ if(UNIX)
if(XML2_FOUND) if(XML2_FOUND)
target_include_directories(${PROJECT_NAME} PRIVATE /usr/include/GraphicsMagick ${XML2_INCLUDE_DIRS}) target_include_directories(${PROJECT_NAME} PRIVATE /usr/include/GraphicsMagick ${XML2_INCLUDE_DIRS})
endif() endif()
target_link_libraries(${PROJECT_NAME}
wt
wtfcgi
curl
xml2
)
elseif(EXISTS "/etc/os-release" AND ("${CMAKE_SYSTEM_NAME}" STREQUAL "Linux")) elseif(EXISTS "/etc/os-release" AND ("${CMAKE_SYSTEM_NAME}" STREQUAL "Linux"))
# Tumbleweed-spezifische Include-Verzeichnisse # Tumbleweed-spezifische Include-Verzeichnisse
target_include_directories(${PROJECT_NAME} PRIVATE /usr/include/GraphicsMagick) target_include_directories(${PROJECT_NAME} PRIVATE /usr/include/GraphicsMagick)
target_link_libraries(${PROJECT_NAME}
wt
wthttp
curl
xml2
)
endif() endif()
if(Boost_FOUND) if(Boost_FOUND)