mirror of https://github.com/dnomd343/klotski.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
766 B
21 lines
766 B
1 year ago
|
cmake_minimum_required(VERSION 3.0)
|
||
|
|
||
|
set(CMAKE_CXX_STANDARD 20)
|
||
|
|
||
|
include_directories(${KLOTSKI_ROOT_PATH}/third_party/googletest/googletest/include)
|
||
|
add_subdirectory(${KLOTSKI_ROOT_PATH}/third_party/googletest googletest EXCLUDE_FROM_ALL)
|
||
|
|
||
|
#unset(CMAKE_ARCHIVE_OUTPUT_DIRECTORY)
|
||
|
include_directories(${KLOTSKI_ROOT_PATH}/third_party/md5)
|
||
|
add_library(md5 STATIC ${KLOTSKI_ROOT_PATH}/third_party/md5/md5.cpp)
|
||
|
|
||
|
set(KLOTSKI_TEST_DEPS klotski-core gtest gtest_main md5)
|
||
|
|
||
|
include_directories(${KLOTSKI_ROOT_PATH}/src/core/all_cases)
|
||
|
include_directories(${KLOTSKI_ROOT_PATH}/src/core/utils)
|
||
|
|
||
|
|
||
|
add_executable(test_klotski_cases cases/all_cases.cc)
|
||
|
target_link_libraries(test_klotski_cases PRIVATE ${KLOTSKI_TEST_DEPS})
|
||
|
add_test(NAME klotski_cases COMMAND test_klotski_cases)
|