2024-04-01 17:18:18 -04:00
|
|
|
cmake_minimum_required(VERSION 3.15)
|
|
|
|
|
|
|
|
project(labo01)
|
|
|
|
|
|
|
|
# Setup language requirements
|
2024-04-01 17:31:21 -04:00
|
|
|
set(CMAKE_CXX_STANDARD 17)
|
2024-04-01 17:18:18 -04:00
|
|
|
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
|
|
|
|
|
|
|
# Add .cpp and .h files
|
2024-04-01 17:31:21 -04:00
|
|
|
file(GLOB_RECURSE MAIN_SOURCES RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}" CONFIGURE_DEPENDS "*.h")
|
2024-04-01 17:18:18 -04:00
|
|
|
add_executable(labo01 main.cpp ${MAIN_SOURCES} ${TESTS_SOURCES})
|
|
|
|
|
2024-04-01 17:31:21 -04:00
|
|
|
# Add .cpp and .h files
|
|
|
|
#set(HEADERS DenseStorage.h MatrixBase.h Matrix.h Math3D.h Vector.h Operators.h)
|
|
|
|
#set(SOURCE main.cpp)
|
|
|
|
#add_executable(labo01 ${SOURCE} ${HEADERS})
|
|
|
|
|
2024-04-01 17:18:18 -04:00
|
|
|
# Add linking information for Google Test
|
|
|
|
target_link_libraries(labo01 gtest)
|
|
|
|
|
|
|
|
# Set labo01 as the startup project for Visual Studio
|
|
|
|
if( MSVC )
|
|
|
|
set_property(TARGET labo01 PROPERTY VS_DEBUGGER_WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/labo01)
|
|
|
|
endif()
|
|
|
|
|