https://github.com/Kitware/CMake
Revision b759fa9b8e2fa8ac93e4b57a0e09fcdc5e0e50af authored by Radek Nadstawny on 10 March 2019, 18:40:55 UTC, committed by Radek Nadstawny on 13 March 2019, 22:42:44 UTC
1 parent 5c106bf
Raw File
Tip revision: b759fa9b8e2fa8ac93e4b57a0e09fcdc5e0e50af authored by Radek Nadstawny on 10 March 2019, 18:40:55 UTC
FindPkgConfig: Set linker flags on imported targets
Tip revision: b759fa9
CMakeLists.txt
# a simple CXX only test case
project (CxxOnly CXX)

set(CMAKE_DEBUG_POSTFIX "_test_debug_postfix")
if(WIN32)
  set(EXTRA_SRCS test.CPP)
endif()
add_library(testcxx1.my STATIC libcxx1.cxx ${EXTRA_SRCS})
add_library(testcxx2 SHARED libcxx2.cxx)
add_executable (CxxOnly cxxonly.cxx)
target_link_libraries(CxxOnly testcxx1.my testcxx2)

add_library(testCxxModule MODULE testCxxModule.cxx)
back to top