forked from sixonionpotatoes/commons
fix CMakeLists.txt
This commit is contained in:
@@ -3,11 +3,11 @@ list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}/cmake")
|
||||
|
||||
set(CMAKE_CXX_STANDARD 20)
|
||||
set(CMAKE_BUILD_TYPE Release)
|
||||
|
||||
project("commons" CXX)
|
||||
|
||||
add_definitions("-lpthread -std=c++2a -g")
|
||||
|
||||
|
||||
include(${CMAKE_BINARY_DIR}/conanbuildinfo.cmake)
|
||||
conan_basic_setup()
|
||||
|
||||
@@ -31,12 +31,9 @@ target_link_libraries(commons_lib
|
||||
|
||||
add_executable(commons
|
||||
src/main.cpp
|
||||
include/commons.cpp
|
||||
src/protocol.cpp
|
||||
src/server.cpp
|
||||
src/client.cpp
|
||||
)
|
||||
|
||||
message("CONAN INCLUDE DIRS: ${CONAN_INCLUDE_DIRS}")
|
||||
target_include_directories(commons
|
||||
PUBLIC
|
||||
${CONAN_INCLUDE_DIRS}
|
||||
@@ -44,8 +41,10 @@ target_include_directories(commons
|
||||
commons_lib
|
||||
)
|
||||
|
||||
target_link_directories(commons
|
||||
PUBLIC
|
||||
message("CONAN LIBS: ${CONAN_LIBS}")
|
||||
target_link_libraries(commons
|
||||
PRIVATE
|
||||
${CONAN_LIBS}
|
||||
commons_lib
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user