浏览代码

Improved target handling.

main
offa 7 年前
父节点
当前提交
f3b4c202d1
共有 2 个文件被更改,包括 3 次插入2 次删除
  1. +2
    -1
      CMakeLists.txt
  2. +1
    -1
      test/CMakeLists.txt

+ 2
- 1
CMakeLists.txt 查看文件

@@ -28,7 +28,8 @@ set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)


include_directories("include")
add_library(ScopeGuard INTERFACE)
target_include_directories(ScopeGuard INTERFACE "include")


if( UNITTEST )

+ 1
- 1
test/CMakeLists.txt 查看文件

@@ -9,7 +9,7 @@ target_link_libraries(TestMain Catch)

function(add_test_suite name)
add_executable(${name} ${name}.cpp)
target_link_libraries(${name} TestMain)
target_link_libraries(${name} TestMain ScopeGuard)
add_test(NAME ${name} COMMAND ${name})
endfunction()


正在加载...
取消
保存