geocore/platform/CMakeLists.txt
2019-10-14 16:31:29 +03:00

37 lines
813 B
CMake

project(platform)
include_directories(${GEOCORE_ROOT}/platform)
set(
SRC
constants.hpp
country_defines.cpp
country_defines.hpp
country_file.cpp
country_file.hpp
local_country_file.cpp
local_country_file.hpp
local_country_file_utils.cpp
local_country_file_utils.hpp
measurement_utils.cpp
measurement_utils.hpp
mwm_version.cpp
mwm_version.hpp
platform.cpp
platform.hpp
preferred_languages.cpp
preferred_languages.hpp
target_os.hpp
)
geocore_add_test_subdirectory(platform_tests_support)
geocore_add_library(${PROJECT_NAME} ${SRC})
geocore_link_libraries(${PROJECT_NAME} base coding jansson ${Boost_SYSTEM_LIBRARY} ${Boost_FILESYSTEM_LIBRARY})
if (APPLE)
target_compile_options(${PROJECT_NAME} PUBLIC "-fobjc-arc")
endif()
geocore_add_test_subdirectory(platform_tests)