diff --git a/CMakeLists.txt b/CMakeLists.txt index 3a02531..dcae68b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -3,7 +3,7 @@ project(Bot) set(CMAKE_CXX_STANDARD 17) -file(GLOB SRC_FILES "src/api/*.cpp" "src/listeners/*.cpp" "src/commands/*.cpp") +file(GLOB SRC_FILES "src/api/*.cpp" "src/commands/*.cpp" "src/listeners/*.cpp") include_directories(src) @@ -12,7 +12,7 @@ find_package(dpp REQUIRED) add_library(mariadbcpp STATIC IMPORTED) set_property(TARGET mariadbcpp PROPERTY IMPORTED_LOCATION "/usr/lib/libmariadbcpp.so") -add_executable(Bot src/main.cpp ${SRC_FILES}) +add_executable(Bot ${SRC_FILES} src/main.cpp) target_link_libraries(Bot dpp) target_link_libraries(Bot mariadbcpp) \ No newline at end of file