forked from sixonionpotatoes/commons
update CMakeLists.txt
This commit is contained in:
@@ -11,9 +11,20 @@ add_definitions("-std=c++2a -g")
|
||||
include(${CMAKE_BINARY_DIR}/conanbuildinfo.cmake)
|
||||
conan_basic_setup()
|
||||
|
||||
add_executable(${PROJECT_NAME} src/main.cpp)
|
||||
add_library(commons_lib include/commons.cpp)
|
||||
target_include_directories (commons_lib
|
||||
PUBLIC
|
||||
${CONAN_INCLUDE_DIRS}
|
||||
include
|
||||
)
|
||||
|
||||
target_link_libraries(${PROJECT_NAME} ${CONAN_LIBS})
|
||||
target_link_libraries(commons_lib
|
||||
PUBLIC
|
||||
${CONAN_LIBS}
|
||||
)
|
||||
|
||||
#enable_testing()
|
||||
#add_subdirectory(tests)
|
||||
set_target_properties(commons_lib PROPERTIES LINKER_LANGUAGE CXX)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user