From e89de6a57fa97206df3841fe969b9221308bbadb Mon Sep 17 00:00:00 2001 From: - <-> Date: Sat, 25 Mar 2023 13:30:49 -0700 Subject: [PATCH] Shortened build times --- CMakeLists.txt | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 9aa947d..8a1060f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -3,13 +3,18 @@ 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}) +add_library(objects OBJECT ${OBJ_SRC}) + +add_executable(reflex2q3 src/main.cpp) +add_executable(runtests test/catch.cpp) +target_link_libraries(reflex2q3 objects) +target_link_libraries(runtests objects) set(CMAKE_CXX_STANDARD 11) set(CMAKE_CXX_STANDARD_REQUIRED True) find_package(PkgConfig) +# find_package("eigen") pkg_check_modules(EIGEN REQUIRED eigen3) include_directories(