aswm/test/CMakeLists.txt
Paul Breugnot a888c234a3 🧪 Failing create fixed size window test
+ test structure improvements
2025-03-02 18:09:52 +01:00

21 lines
573 B
CMake

FetchContent_Declare(
unity
GIT_REPOSITORY https://github.com/ThrowTheSwitch/Unity.git
GIT_TAG v2.6.1
)
FetchContent_MakeAvailable(unity)
add_compile_definitions(ASWM_TEST_DIR="${CMAKE_CURRENT_SOURCE_DIR}")
add_executable(test_aswm
test_set_up.c
aswm/aswm.c
aswm/create_windows.c
aswm/create_windows/single_resizeable.c
aswm/create_windows/multiple_resizeable.c
aswm/create_windows/single_fixed_size.c
)
target_include_directories(test_aswm PUBLIC ${unity_SOURCE_DIR}/src)
target_link_libraries(test_aswm libaswm unity)
enable_testing()
add_test(aswm test_aswm)