-
Notifications
You must be signed in to change notification settings - Fork 255
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ef05606
commit 1ffec75
Showing
4 changed files
with
57 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,19 @@ | ||
|
||
include_directories(../) | ||
file(GLOB_RECURSE SRC_FILES *.cpp) | ||
add_library(tarsmock ${SRC_FILES}) | ||
add_library(tarsmock STATIC ${SRC_FILES}) | ||
add_library(tarsmock_shared SHARED ${SRC_FILES}) | ||
target_link_libraries(tarsmock_shared tarsservant_shared tarsutil_shared) | ||
|
||
add_dependencies(tarsmock tarsservant) | ||
add_dependencies(tarsmock_shared tarsservant) | ||
install(DIRECTORY . DESTINATION include/mock FILES_MATCHING PATTERN "*.h") | ||
|
||
install(TARGETS tarsmock RUNTIME DESTINATION bin LIBRARY DESTINATION lib ARCHIVE DESTINATION lib) | ||
install(TARGETS tarsmock_shared RUNTIME DESTINATION bin LIBRARY DESTINATION lib ARCHIVE DESTINATION lib) | ||
|
||
if (WIN32) | ||
install(FILES $<TARGET_PDB_FILE:tarsmock_shared> DESTINATION bin) | ||
endif() | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters