mirror of
https://github.com/allemangD/toddcox-visualize.git
synced 2025-11-10 12:02:47 -05:00
restructure cmake project
This commit is contained in:
@@ -1,6 +1,9 @@
|
|||||||
cmake_minimum_required(VERSION 3.10)
|
cmake_minimum_required(VERSION 3.10)
|
||||||
project(test)
|
project(tc)
|
||||||
|
|
||||||
set(CMAKE_CXX_STANDARD 17)
|
set(CMAKE_CXX_STANDARD 17)
|
||||||
|
|
||||||
add_executable(test test.cpp groups.cpp solver.cpp)
|
add_library(tc STATIC src/groups.cpp src/solver.cpp)
|
||||||
|
target_include_directories(tc PUBLIC include)
|
||||||
|
|
||||||
|
add_subdirectory(example)
|
||||||
|
|||||||
2
example/CMakeLists.txt
Normal file
2
example/CMakeLists.txt
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
add_executable(bench bench.cpp)
|
||||||
|
target_link_libraries(bench PRIVATE tc)
|
||||||
Reference in New Issue
Block a user