镜像自地址
https://github.com/quitesimpleorg/qsmaddy.git
已同步 2024-12-18 09:42:37 +01:00
Improved cmake setup
这个提交包含在:
父节点
ba5cb5d6c5
当前提交
348aa81607
@ -28,5 +28,5 @@ script:
|
||||
- mkdir tmp
|
||||
- cd tmp
|
||||
- cmake ..
|
||||
- make
|
||||
- make -j4
|
||||
- ../build/MaddyTests
|
||||
|
@ -60,10 +60,9 @@ add_subdirectory(libs)
|
||||
|
||||
# ------------------------------------------------------------------------------
|
||||
|
||||
include_directories(
|
||||
${LIBS_INCLUDE_DIRS}
|
||||
add_library(maddy INTERFACE)
|
||||
target_include_directories(maddy INTERFACE
|
||||
${MADDY_INCLUDE_DIR}
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/tests
|
||||
)
|
||||
|
||||
# ------------------------------------------------------------------------------
|
||||
@ -73,5 +72,9 @@ add_executable(
|
||||
${MADDY_TESTS_FILES}
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/tests/main.cpp
|
||||
)
|
||||
target_link_libraries(MaddyTests gmock_main)
|
||||
target_include_directories(MaddyTests PUBLIC
|
||||
${LIBS_INCLUDE_DIRS}
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/tests
|
||||
)
|
||||
target_link_libraries(MaddyTests maddy gmock_main)
|
||||
add_test(MaddyTests ${CMAKE_CURRENT_SOURCE_DIR}/build/MaddyTests)
|
||||
|
正在加载...
在新工单中引用
屏蔽一个用户