From f337468d358913fb59318b028709ede260000ace Mon Sep 17 00:00:00 2001 From: Robert Date: Sun, 17 May 2020 00:37:02 +0200 Subject: [PATCH] Changed target_link_libraries to use generated targets --- SDLU/CMakeLists.txt | 2 +- SDLU_Example/CMakeLists.txt | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/SDLU/CMakeLists.txt b/SDLU/CMakeLists.txt index c17faf3..370436a 100644 --- a/SDLU/CMakeLists.txt +++ b/SDLU/CMakeLists.txt @@ -12,7 +12,7 @@ target_include_directories(${PNAME} PRIVATE ) target_link_libraries(${PNAME} PRIVATE - ${CMAKE_BINARY_DIR}/3rdparty/SDL/SDL2d.lib + SDL2 ) add_subdirectory(structures) diff --git a/SDLU_Example/CMakeLists.txt b/SDLU_Example/CMakeLists.txt index 464c62c..46c4e9f 100644 --- a/SDLU_Example/CMakeLists.txt +++ b/SDLU_Example/CMakeLists.txt @@ -10,9 +10,9 @@ target_include_directories(${PNAME} PRIVATE ) target_link_libraries(${PNAME} - ${CMAKE_BINARY_DIR}/3rdparty/SDL/SDL2d.lib - ${CMAKE_BINARY_DIR}/3rdparty/SDL/SDL2maind.lib - ${CMAKE_BINARY_DIR}/SDLU/SDLU.lib + SDLU + SDL2 + SDL2main ) add_custom_command(TARGET ${PNAME}