Browse Source

add check target

opengl-renderer-broken
Martin Dørum 4 years ago
parent
commit
34a0000cb4
2 changed files with 6 additions and 0 deletions
  1. 2
    0
      CMakeLists.txt
  2. 4
    0
      libswan/CMakeLists.txt

+ 2
- 0
CMakeLists.txt View File

@@ -54,3 +54,5 @@ endforeach(a)

install(TARGETS swan DESTINATION swan)
install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/assets DESTINATION swan)

add_custom_target(check DEPENDS check_libswan)

+ 4
- 0
libswan/CMakeLists.txt View File

@@ -46,3 +46,7 @@ add_executable(test_libswan EXCLUDE_FROM_ALL
target_link_libraries(test_libswan libswan)
target_include_directories(test_libswan
PRIVATE "include/swan")

add_custom_target(check_libswan
COMMAND ${CMAKE_CURRENT_BINARY_DIR}/test_libswan
DEPENDS test_libswan)

Loading…
Cancel
Save