mirror of
https://github.com/jorenchik/mdemory.git
synced 2026-03-22 00:26:21 +00:00
38 lines
623 B
CMake
38 lines
623 B
CMake
cmake_minimum_required(VERSION 3.14)
|
|
project(MdemoryTest)
|
|
|
|
set(CMAKE_CXX_STANDARD 20)
|
|
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
|
|
|
find_package(GTest REQUIRED)
|
|
enable_testing()
|
|
|
|
add_executable(
|
|
transpilerFunctional
|
|
transpilerFunctional.cpp
|
|
)
|
|
|
|
add_executable(
|
|
transpilerNonFunctional
|
|
transpilerNonFunctional.cpp
|
|
)
|
|
|
|
target_link_libraries(
|
|
transpilerFunctional
|
|
GTest::gtest_main
|
|
api
|
|
)
|
|
|
|
target_link_libraries(
|
|
transpilerNonFunctional
|
|
GTest::gtest_main
|
|
api
|
|
gui
|
|
)
|
|
|
|
if(ENABLE_TESTS)
|
|
include(GoogleTest)
|
|
gtest_discover_tests(transpilerFunctional)
|
|
gtest_discover_tests(transpilerNonFunctional)
|
|
endif()
|