2021-07-23 05:08:54 +00:00
|
|
|
cmake_minimum_required(VERSION 3.5)
|
|
|
|
project([[ProjectName]]_test CXX)
|
|
|
|
|
|
|
|
add_executable(${PROJECT_NAME} test_main.cc)
|
|
|
|
|
|
|
|
# ##############################################################################
|
|
|
|
# If you include the drogon source code locally in your project, use this method
|
|
|
|
# to add drogon
|
2023-11-18 08:13:30 +00:00
|
|
|
# target_link_libraries(${PROJECT_NAME} PRIVATE drogon)
|
2021-07-23 05:08:54 +00:00
|
|
|
#
|
|
|
|
# and comment out the following lines
|
|
|
|
target_link_libraries(${PROJECT_NAME} PRIVATE Drogon::Drogon)
|
|
|
|
|
2023-11-18 08:13:30 +00:00
|
|
|
ParseAndAddDrogonTests(${PROJECT_NAME})
|