🎨 Sets up test/CMakeLists.txt
This commit is contained in:
parent
3d17053a2b
commit
29002b24e0
2 changed files with 20 additions and 18 deletions
18
test/CMakeLists.txt
Normal file
18
test/CMakeLists.txt
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
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/test_aswm.c
|
||||
aswm/test_aswm_create_windows.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)
|
||||
Loading…
Add table
Add a link
Reference in a new issue