diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 2f77f1a..a43a3fb 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -22,7 +22,7 @@ file(GLOB LOCALE "./locale/**/*.c") set(CMAKE_C_VISIBILITY_PRESET hidden) set(CMAKE_VISIBILITY_INLINES_HIDDEN 1) -add_library(i18n_format SHARED ${SOURCE_FILES} ${GEN_SOURCES_H} ${GEN_SOURCES} ${LOCALE_H} ${LOCALE} ${API_FILES}) +add_library(i18n_format ${SOURCE_FILES} ${GEN_SOURCES_H} ${GEN_SOURCES} ${LOCALE_H} ${LOCALE} ${API_FILES}) add_dependencies(i18n_format codeGen) diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 1d278f1..ccbae23 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -11,8 +11,6 @@ set_target_properties(test PROPERTIES C_EXTENSIONS NO ) -target_link_libraries(test PRIVATE i18n_format) - # Special access to i18n-format internals for testing target_include_directories(test PRIVATE ${CMAKE_SOURCE_DIR}/src) @@ -23,4 +21,6 @@ elseif (APPLE) target_compile_options(test PRIVATE -ffp-contract=off) endif () +target_link_libraries(test PRIVATE i18n_format) + source_group(TREE "${CMAKE_CURRENT_SOURCE_DIR}" PREFIX "" FILES ${i18n_format_TESTS}) \ No newline at end of file