From 450f6d71391bb8ab6d03b8d628ed733223d8deb3 Mon Sep 17 00:00:00 2001 From: Lion Kortlepel Date: Mon, 16 Nov 2020 15:39:03 +0100 Subject: [PATCH] rearrange cmakelists --- CMakeLists.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 76c55b3..aca3d99 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -20,15 +20,16 @@ elseif (WIN32) endif () find_package(Boost 1.70.0 REQUIRED COMPONENTS system thread) + file(GLOB source_files "src/*.cpp" "src/*/*.cpp" "include/*.h" "include/*/*.h" "include/*.hpp" "include/*/*.hpp") add_executable(BeamMP-Server ${source_files}) - + target_include_directories(BeamMP-Server SYSTEM PUBLIC $) find_package(Lua 5.3 REQUIRED) target_include_directories(BeamMP-Server SYSTEM PUBLIC ${LUA_INCLUDE_DIR} ${Boost_INCLUDE_DIRS}) if (UNIX) - target_link_libraries(BeamMP-Server curl z pthread stdc++fs ${Boost_LINK_DIRS} ${LUA_LIBRARIES}) + target_link_libraries(BeamMP-Server z pthread stdc++fs ${Boost_LINK_DIRS} lua curl dl) elseif (WIN32) include(FindLua) find_package(CURL CONFIG REQUIRED)