23 lines
756 B
CMake
23 lines
756 B
CMake
|
cmake_minimum_required(VERSION 3.29)
|
||
|
project(test_cpp)
|
||
|
|
||
|
set(CMAKE_CXX_STANDARD 20)
|
||
|
|
||
|
#find_package(testlib)
|
||
|
|
||
|
add_executable(test_cpp main.cpp)
|
||
|
|
||
|
#set (CMAKE_PREFIX_PATH "/home/ahypki/CLionProjects/test-libshared/cmake-build-debug/")
|
||
|
#
|
||
|
|
||
|
#target_link_libraries(testlib PUBLIC /home/ahypki/CLionProjects/test-libshared/cmake-build-debug/libtestlib.so)
|
||
|
|
||
|
#add_library(testlib SHARED IMPORTED)
|
||
|
#set_target_properties(testlib PROPERTIES IMPORTED_LOCATION "/home/ahypki/CLionProjects/test-libshared/cmake-build-debug/libtestlib.so")
|
||
|
|
||
|
#target_link_libraries(testlib testlib)
|
||
|
|
||
|
|
||
|
include_directories(/home/ahypki/CLionProjects/test-libshared/cmake-build-debug/)
|
||
|
target_link_libraries(test_cpp "/home/ahypki/CLionProjects/test-libshared/cmake-build-debug/libtestlib.so")
|