2018-03-09 06:21:26 +08:00
|
|
|
cmake_minimum_required(VERSION 3.6)
|
|
|
|
project(cron_test)
|
|
|
|
|
|
|
|
set(CMAKE_CXX_STANDARD 14)
|
2018-03-11 22:26:26 +08:00
|
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wpedantic -Wextra")
|
2018-03-09 06:21:26 +08:00
|
|
|
|
|
|
|
include_directories(
|
2018-03-12 03:24:55 +08:00
|
|
|
${CMAKE_CURRENT_LIST_DIR}/externals/Catch2/single_include/
|
|
|
|
${CMAKE_CURRENT_LIST_DIR}/../libcron/externals/date/include
|
|
|
|
${CMAKE_CURRENT_LIST_DIR}/..
|
2018-03-09 06:21:26 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
add_executable(
|
|
|
|
${PROJECT_NAME}
|
2018-03-11 06:42:00 +08:00
|
|
|
CronDataTest.cpp
|
|
|
|
CronScheduleTest.cpp CronTest.cpp)
|
2018-03-09 06:21:26 +08:00
|
|
|
|
2018-03-13 07:46:03 +08:00
|
|
|
target_link_libraries(${PROJECT_NAME} libcron)
|
|
|
|
|
|
|
|
set_target_properties(${PROJECT_NAME} PROPERTIES
|
|
|
|
ARCHIVE_OUTPUT_DIRECTORY "${OUTPUT_LOCATION}"
|
|
|
|
LIBRARY_OUTPUT_DIRECTORY "${OUTPUT_LOCATION}"
|
|
|
|
RUNTIME_OUTPUT_DIRECTORY "${OUTPUT_LOCATION}")
|