-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
28 lines (20 loc) · 949 Bytes
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
cmake_minimum_required(VERSION 3.1)
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED On)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -pedantic -Wextra")
project(cuculiform)
include_directories(src)
# TODO: WHY IS THIS NEEDED TO GET FIND_PACKAGE TO WORK?!?!?!?!?
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}/cmake")
find_package(HighwayHash REQUIRED)
find_package(CityHash REQUIRED)
add_library(Catch INTERFACE)
target_include_directories(Catch INTERFACE tests/catch)
add_executable(cuculiform_tests tests/tests.cc)
target_include_directories(cuculiform_tests PRIVATE ${HIGHWAYHASH_INCLUDE_DIR})
target_include_directories(cuculiform_tests PRIVATE ${CITYHASH_INCLUDE_DIR})
target_link_libraries(cuculiform_tests ${HIGHWAYHASH_LIBRARY})
target_link_libraries(cuculiform_tests ${CITYHASH_LIBRARY})
target_link_libraries(cuculiform_tests Catch)
enable_testing()
add_test(NAME "CuculiformTests" COMMAND cuculiform_tests)