boost_unit_test_flameworkに対応(#58)
This commit is contained in:
+5
-5
@@ -49,6 +49,7 @@ if(ENABLE_CODE_COVERAGE)
|
||||
endif()
|
||||
|
||||
# Required libraries
|
||||
find_package(Boost 1.71.0 COMPONENTS unit_test_framework REQUIRED)
|
||||
find_package(PkgConfig REQUIRED)
|
||||
find_package(OpenSSL REQUIRED)
|
||||
if(NOT OPENSSL_FOUND)
|
||||
@@ -63,14 +64,13 @@ if(NOT CURL_FOUND)
|
||||
endif()
|
||||
include_directories(${CURL_INCLUDE_DIRS})
|
||||
|
||||
find_library(cpprest REQUIRED)
|
||||
include_directories(${CPP_REST_INCLUDE_DIR})
|
||||
|
||||
|
||||
include_directories(
|
||||
${PROJECT_SOURCE_DIR}/src
|
||||
${PROJECT_SOURCE_DIR}/third
|
||||
)
|
||||
|
||||
# Enable CTest
|
||||
enable_testing()
|
||||
|
||||
add_subdirectory(src)
|
||||
#add_subdirectory(test)
|
||||
add_subdirectory(test)
|
||||
|
||||
+1
-6
@@ -2,9 +2,4 @@ add_subdirectory(cocoatweet)
|
||||
|
||||
set(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR})
|
||||
add_executable(${PROJECT_NAME} main.cc)
|
||||
target_link_libraries(${PROJECT_NAME}
|
||||
lib-cocoatweet
|
||||
OpenSSL::SSL
|
||||
OpenSSL::Crypto
|
||||
${CURL_LIBRARIES}
|
||||
)
|
||||
target_link_libraries(${PROJECT_NAME} lib-cocoatweet)
|
||||
@@ -1,4 +1,11 @@
|
||||
file(GLOB_RECURSE SOURCES ./*.cc)
|
||||
add_library(lib-cocoatweet ${SOURCES})
|
||||
target_link_libraries(lib-cocoatweet PUBLIC
|
||||
Boost::boost
|
||||
OpenSSL::SSL
|
||||
OpenSSL::Crypto
|
||||
${CURL_LIBRARIES}
|
||||
)
|
||||
|
||||
target_include_directories(lib-cocoatweet PUBLIC ${PROJECT_SOURCE_DIR}/src)
|
||||
set_target_properties(lib-cocoatweet PROPERTIES OUTPUT_NAME cocoatweet)
|
||||
|
||||
Reference in New Issue
Block a user