diff --git a/CMakeLists.txt b/CMakeLists.txt index f290e96d..d603ab67 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -13,6 +13,8 @@ elseif(${CMAKE_BUILD_TYPE} MATCHES HIL) include(${CMAKE_SOURCE_DIR}/cmake/fetch_googletest.cmake) set(CMAKE_TOOLCHAIN_FILE ${CMAKE_SOURCE_DIR}/cmake/toolchain_hil_gcc.cmake) elseif(${CMAKE_BUILD_TYPE} MATCHES Test) + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -m32") + set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -m32") include(${CMAKE_SOURCE_DIR}/cmake/fetch_googletest.cmake) set(CMAKE_TOOLCHAIN_FILE ${CMAKE_SOURCE_DIR}/cmake/toolchain_linux_gcc.cmake) elseif(${CMAKE_BUILD_TYPE} MATCHES Examples) @@ -48,6 +50,7 @@ endif() if(${CMAKE_BUILD_TYPE} MATCHES Test) enable_language(C CXX) enable_testing() + add_subdirectory(test) endif()