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_CXX_STANDARD 20)
|
||||||
set(CMAKE_BUILD_TYPE Release)
|
set(CMAKE_BUILD_TYPE Release)
|
||||||
|
|
||||||
project("commons" CXX)
|
project("commons" CXX)
|
||||||
|
|
||||||
add_definitions("-lpthread -std=c++2a -g")
|
add_definitions("-lpthread -std=c++2a -g")
|
||||||
|
|
||||||
|
|
||||||
include(${CMAKE_BINARY_DIR}/conanbuildinfo.cmake)
|
include(${CMAKE_BINARY_DIR}/conanbuildinfo.cmake)
|
||||||
conan_basic_setup()
|
conan_basic_setup()
|
||||||
|
|
||||||
@@ -31,12 +31,9 @@ target_link_libraries(commons_lib
|
|||||||
|
|
||||||
add_executable(commons
|
add_executable(commons
|
||||||
src/main.cpp
|
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
|
target_include_directories(commons
|
||||||
PUBLIC
|
PUBLIC
|
||||||
${CONAN_INCLUDE_DIRS}
|
${CONAN_INCLUDE_DIRS}
|
||||||
@@ -44,8 +41,10 @@ target_include_directories(commons
|
|||||||
commons_lib
|
commons_lib
|
||||||
)
|
)
|
||||||
|
|
||||||
target_link_directories(commons
|
message("CONAN LIBS: ${CONAN_LIBS}")
|
||||||
PUBLIC
|
target_link_libraries(commons
|
||||||
|
PRIVATE
|
||||||
|
${CONAN_LIBS}
|
||||||
commons_lib
|
commons_lib
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user