aboutsummaryrefslogtreecommitdiff
path: root/src/mock
diff options
context:
space:
mode:
authorJan200101 <sentrycraft123@gmail.com>2021-08-08 11:20:35 +0200
committerJan200101 <sentrycraft123@gmail.com>2021-08-08 11:20:35 +0200
commit34290dfd1377a410b3fea96eb855fd4325a2c269 (patch)
tree13587e72351b2db83853090d6bb35051f64e4116 /src/mock
parent7d2c186d9ba3bd6438ae4afab349b8c0c795cef6 (diff)
downloadpolecat-34290dfd1377a410b3fea96eb855fd4325a2c269.tar.gz
polecat-34290dfd1377a410b3fea96eb855fd4325a2c269.zip
replace static core library to be an object library
Diffstat (limited to 'src/mock')
-rw-r--r--src/mock/CMakeLists.txt3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mock/CMakeLists.txt b/src/mock/CMakeLists.txt
index 320e8a9..8c705e4 100644
--- a/src/mock/CMakeLists.txt
+++ b/src/mock/CMakeLists.txt
@@ -35,9 +35,8 @@ add_dependencies(mock wine_tar wine_json)
target_include_directories(mock PRIVATE ${WINE_TAR_DIR} ${CMAKE_CURRENT_BINARY_DIR})
set(NAME ${CMAKE_PROJECT_NAME}_mock)
-add_executable(${NAME} ${MAINSOURCES})
+add_executable(${NAME} $<TARGET_OBJECTS:core>)
-target_link_libraries(${NAME} LINK_PUBLIC ${CMAKE_PROJECT_NAME}core)
target_link_libraries(${NAME} LINK_PUBLIC ${JSONC_LIBRARIES})
target_link_libraries(${NAME} LINK_PUBLIC ${LIBARCHIVE_LIBRARIES})
target_link_libraries(${NAME} LINK_PUBLIC mock)