25 lines
408 B
CMake
25 lines
408 B
CMake
# RPT Core Library
|
|
|
|
set(RPT_SOURCES
|
|
camera.cpp
|
|
interface.cpp
|
|
triangulator.cpp
|
|
)
|
|
|
|
add_library(rpt_core STATIC ${RPT_SOURCES})
|
|
|
|
target_include_directories(rpt_core PUBLIC
|
|
${CMAKE_CURRENT_SOURCE_DIR}
|
|
)
|
|
|
|
target_compile_options(rpt_core PRIVATE
|
|
-fPIC
|
|
-march=native
|
|
-Wall
|
|
)
|
|
|
|
# Release mode optimizations
|
|
target_compile_options(rpt_core PRIVATE
|
|
$<$<CONFIG:Release>:-O3;-flto=auto>
|
|
)
|