Check that AltiVec is enabled before using it
[openal-soft.git] / fmt-11.0.2 / test / add-subdirectory-test / CMakeLists.txt
blob362b0494502f93f34a424e03910e4b7a23ded142
1 cmake_minimum_required(VERSION 3.8...3.25)
3 project(fmt-test CXX)
5 add_subdirectory(../.. fmt)
7 add_executable(library-test main.cc)
8 target_include_directories(library-test PUBLIC SYSTEM .)
9 target_compile_options(library-test PRIVATE ${PEDANTIC_COMPILE_FLAGS})
10 target_link_libraries(library-test fmt::fmt)
12 if (TARGET fmt::fmt-header-only)
13   add_executable(header-only-test main.cc)
14   target_include_directories(header-only-test PUBLIC SYSTEM .)
15   target_compile_options(header-only-test PRIVATE ${PEDANTIC_COMPILE_FLAGS})
16   target_link_libraries(header-only-test fmt::fmt-header-only)
17 endif ()