22 lines
534 B
CMake
22 lines
534 B
CMake
|
|
||
|
cmake_minimum_required(VERSION 3.10)
|
||
|
project(reflex2q3 CXX)
|
||
|
|
||
|
set(OBJ_SRC "src/planes.cpp" "src/brushdef.cpp" "src/oopless-parser.cpp" "src/EntityConverter.cpp")
|
||
|
add_executable(reflex2q3 src/main.cpp ${OBJ_SRC})
|
||
|
add_executable(runtests test/catch.cpp ${OBJ_SRC})
|
||
|
|
||
|
set(CMAKE_CXX_STANDARD 11)
|
||
|
set(CMAKE_CXX_STANDARD_REQUIRED True)
|
||
|
|
||
|
find_package(PkgConfig)
|
||
|
pkg_check_modules(EIGEN REQUIRED eigen3)
|
||
|
|
||
|
include_directories(
|
||
|
${EIGEN_INCLUDE_DIRS}
|
||
|
"lib/Catch/single_include/catch2"
|
||
|
"lib/cxxopts/include"
|
||
|
"include"
|
||
|
"test"
|
||
|
)
|