summaryrefslogtreecommitdiff
path: root/example/CMakeLists.txt
diff options
context:
space:
mode:
author“pengxuanzheng” <[email protected]>2022-06-01 10:23:29 +0000
committer“pengxuanzheng” <[email protected]>2022-06-01 10:59:33 +0000
commitd229dcfa923d4ff7013c825fc4d2f2c4dbdb850a (patch)
treec7acba75bdce477a271f5e7f68e2a0c5e9877580 /example/CMakeLists.txt
parent60d7653f8a813f91c40a342d2ca4260002638986 (diff)
✨ feat: 根据cppcheck 修改example, 增加lua 测试用例
Diffstat (limited to 'example/CMakeLists.txt')
-rw-r--r--example/CMakeLists.txt7
1 files changed, 4 insertions, 3 deletions
diff --git a/example/CMakeLists.txt b/example/CMakeLists.txt
index d31b4d4..e672a03 100644
--- a/example/CMakeLists.txt
+++ b/example/CMakeLists.txt
@@ -2,13 +2,14 @@ cmake_minimum_required(VERSION 3.5)
project (single_thread)
project (multithread)
-link_directories("/opt/MESA/lib")
+link_directories("${CMAKE_BINARY_DIR}/src")
link_libraries(tsglua pthread)
add_definitions(-g -W -Wall)
add_executable(single_thread single_thread.cpp)
add_executable(multithread multithread.cpp)
-target_link_libraries(single_thread tsglua)
-target_link_libraries(multithread tsglua)
+add_dependencies(single_thread ${lib_name}_shared)
+add_dependencies(multithread ${lib_name}_shared)
+add_subdirectory(luatest) \ No newline at end of file