cmake_minimum_required(VERSION 3.15)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_FLAGS_RELEASE "-O3")
set(CMAKE_VERBOSE_MAKEFILE ON)
project(oddeven)

enable_testing()

add_definitions(-DORDER_OF_FIELD=8)

add_subdirectory(Google_tests EXCLUDE_FROM_ALL)

add_library(nautylib STATIC IMPORTED GLOBAL)
set_target_properties(nautylib PROPERTIES IMPORTED_LOCATION ${CMAKE_SOURCE_DIR}/nauty/nauty.a)

include_directories(nauty lib singer)

add_executable(gensets gensets.cpp)
target_link_libraries(gensets nautylib)

add_executable(gensmalloe gensmalloe.cpp)
target_link_libraries(gensmalloe nautylib)

add_executable(genlinesums genlinesums.cpp)
target_link_libraries(genlinesums nautylib)

add_executable(gensimplelinesums gensimplelinesums.cpp)
target_link_libraries(gensimplelinesums nautylib)

