information-retrieval

Exploration of information retrieval topics
git clone git://git.laack.co/information-retrieval.git
Log | Files | Refs

CMakeLists.txt (1007B)


      1 cmake_minimum_required(VERSION 3.5)
      2 project(search)
      3 
      4 include_directories("include")
      5 
      6 include(FetchContent)
      7 FetchContent_Declare(cpr GIT_REPOSITORY https://github.com/libcpr/cpr.git
      8                          GIT_TAG 53e2d28696e542d4b32b7c42928395494bcafe64) # Replace with your desired git commit from: https://github.com/libcpr/cpr/releases
      9 FetchContent_MakeAvailable(cpr)
     10 
     11 option(CURL_STATIC_LINKING "Set to ON to build libcurl with static linking."  OFF)
     12 
     13 if(CURL_STATIC_LINKING)
     14     message("-DCURL_STATICLIB [added]")
     15     add_definitions(-DCURL_STATICLIB)
     16 endif()
     17 
     18 add_definitions(-DJSON_USE_IMPLICIT_CONVERSIONS=0)
     19 find_package(CURL REQUIRED)
     20 include_directories(${CURL_INCLUDE_DIRS})
     21 
     22 add_executable(main src/main.cpp src/researcher.cpp)
     23 target_link_libraries(main PRIVATE ${CURL_LIBRARIES})
     24 target_link_libraries(main PRIVATE cpr::cpr)
     25 
     26 add_executable(summary src/summary.cpp src/researcher.cpp)
     27 target_link_libraries(summary PRIVATE ${CURL_LIBRARIES})
     28 target_link_libraries(summary PRIVATE cpr::cpr)