Changed used libs for different systems
This commit is contained in:
@@ -14,13 +14,6 @@ add_executable(${PROJECT_NAME}
|
||||
|
||||
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)
|
||||
if(UNIX)
|
||||
# Ubuntu-spezifische Include-Verzeichnisse
|
||||
@@ -29,9 +22,21 @@ if(UNIX)
|
||||
if(XML2_FOUND)
|
||||
target_include_directories(${PROJECT_NAME} PRIVATE /usr/include/GraphicsMagick ${XML2_INCLUDE_DIRS})
|
||||
endif()
|
||||
target_link_libraries(${PROJECT_NAME}
|
||||
wt
|
||||
wtfcgi
|
||||
curl
|
||||
xml2
|
||||
)
|
||||
elseif(EXISTS "/etc/os-release" AND ("${CMAKE_SYSTEM_NAME}" STREQUAL "Linux"))
|
||||
# Tumbleweed-spezifische Include-Verzeichnisse
|
||||
target_include_directories(${PROJECT_NAME} PRIVATE /usr/include/GraphicsMagick)
|
||||
target_link_libraries(${PROJECT_NAME}
|
||||
wt
|
||||
wthttp
|
||||
curl
|
||||
xml2
|
||||
)
|
||||
endif()
|
||||
|
||||
if(Boost_FOUND)
|
||||
|
||||
Reference in New Issue
Block a user