Skip to content

Commit

Permalink
Link new correct target in tests and samples.
Browse files Browse the repository at this point in the history
  • Loading branch information
FedeDP committed Mar 9, 2019
1 parent e86f5c1 commit 4af6fde
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
3 changes: 2 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,8 @@ include_directories(Lib Lib/public/module)
add_library(${PROJECT_NAME} ${LIBRARY_TYPE} ${SOURCES})

set_target_properties(
${PROJECT_NAME} PROPERTIES PREFIX ""
${PROJECT_NAME} PROPERTIES
PREFIX ""
VERSION ${PROJECT_VERSION}
SOVERSION ${PROJECT_VERSION_MAJOR}
PUBLIC_HEADER "${PUBLIC_H}"
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ Installation - Red Hat
----------------------

$ cpack3 -G RPM

And finally install generated RPM package.

Installation - Debian
Expand Down
8 changes: 4 additions & 4 deletions Samples/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ add_executable(MultiCtx ${MULTICTX_SRC})
add_executable(SharedSrc ${SHAREDSRC_SRC})
add_executable(Cpp ${CPP_SRC})

target_link_libraries(Easy module)
target_link_libraries(MultiCtx module pthread)
target_link_libraries(SharedSrc module)
target_link_libraries(Cpp module)
target_link_libraries(Easy ${PROJECT_NAME})
target_link_libraries(MultiCtx ${PROJECT_NAME} pthread)
target_link_libraries(SharedSrc ${PROJECT_NAME})
target_link_libraries(Cpp ${PROJECT_NAME})
2 changes: 1 addition & 1 deletion tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ else()
endif()

target_include_directories(ModuleTest PRIVATE ${CMOCKA_INCLUDE_DIR})
target_link_libraries(ModuleTest ${CMOCKA_LIBRARIES} module)
target_link_libraries(ModuleTest ${CMOCKA_LIBRARIES} ${PROJECT_NAME})

0 comments on commit 4af6fde

Please sign in to comment.