Cleanup CMakeLists.txt
This commit is contained in:
parent
5db592bcc2
commit
e4d1f44c2a
@ -50,18 +50,12 @@ set(SOURCES
|
|||||||
|
|
||||||
add_library(${PROJECT_NAME} STATIC ${SOURCES})
|
add_library(${PROJECT_NAME} STATIC ${SOURCES})
|
||||||
|
|
||||||
find_package(CURL)
|
find_package(CURL REQUIRED)
|
||||||
if(NOT ${CURL_FOUND})
|
target_include_directories(${PROJECT_NAME} PUBLIC ${CURL_INCLUDE_DIRS})
|
||||||
message(FATAL_ERROR "CURL library not found")
|
|
||||||
endif()
|
|
||||||
include_directories(${CURL_INCLUDE_DIRS})
|
|
||||||
target_link_libraries(${PROJECT_NAME} PUBLIC ${CURL_LIBRARIES})
|
target_link_libraries(${PROJECT_NAME} PUBLIC ${CURL_LIBRARIES})
|
||||||
|
|
||||||
find_package(Backtrace)
|
find_package(Backtrace REQUIRED)
|
||||||
if(NOT ${Backtrace_FOUND})
|
target_include_directories(${PROJECT_NAME} PUBLIC ${Backtrace_INCLUDE_DIRS})
|
||||||
message(FATAL_ERROR "Backtrace library not found")
|
|
||||||
endif()
|
|
||||||
include_directories(${Backtrace_INCLUDE_DIRS})
|
|
||||||
target_link_libraries(${PROJECT_NAME} PUBLIC ${Backtrace_LIBRARIES})
|
target_link_libraries(${PROJECT_NAME} PUBLIC ${Backtrace_LIBRARIES})
|
||||||
|
|
||||||
target_link_libraries(${PROJECT_NAME} PUBLIC pthread)
|
target_link_libraries(${PROJECT_NAME} PUBLIC pthread)
|
||||||
|
Loading…
Reference in New Issue
Block a user