Simplify static builds

This commit is contained in:
Lukáš Lalinský
2011-05-08 15:57:34 +02:00
parent b5b8387aee
commit a38d2b2995
3 changed files with 8 additions and 12 deletions

View File

@ -18,12 +18,7 @@ include_directories(
set(tag_c_HDRS tag_c.h)
if(ENABLE_STATIC)
add_library(tag_c STATIC tag_c.cpp ${tag_c_HDRS})
set_target_properties(tag_c PROPERTIES COMPILE_DEFINITIONS TAGLIB_STATIC)
else()
add_library(tag_c SHARED tag_c.cpp ${tag_c_HDRS})
endif()
add_library(tag_c tag_c.cpp ${tag_c_HDRS})
target_link_libraries(tag_c tag)
set_target_properties(tag_c PROPERTIES PUBLIC_HEADER "${tag_c_HDRS}")