summaryrefslogtreecommitdiffstats
path: root/Tests/QtAutogen/MacOsFW/src/CMakeLists.txt
blob: 67e2c8a8a0b7d365a4f9aeddaa20bf6dd1ff279c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
set(MACOS_FW_LIB_VERSION "0.1")
set(MACOS_FW_LIB_SRCS
  macos_fw_lib.cpp
)
set(MACOS_FW_LIB_HDRS
  macos_fw_lib.h
)

include_directories(
  ${CMAKE_CURRENT_SOURCE_DIR}
  ${CMAKE_CURRENT_BINARY_DIR}
  ${Qt${QT_TEST_VERSION}Core_INCLUDE_DIRS}
)

add_library(macos_fw_lib SHARED
  ${MACOS_FW_LIB_SRCS}
  ${MACOS_FW_LIB_HDRS}
)
set_target_properties(macos_fw_lib PROPERTIES AUTOMOC TRUE)
set_target_properties(macos_fw_lib PROPERTIES
  CLEAN_DIRECT_OUTPUT 1
  FRAMEWORK 1
  FRAMEWORK_VERSION ${MACOS_FW_LIB_VERSION}
  VERSION ${MACOS_FW_LIB_VERSION}
  SOVERSION ${MACOS_FW_LIB_VERSION}
  MACOSX_FRAMEWORK_SHORT_VERSION_STRING ${MACOS_FW_LIB_VERSION}
  MACOSX_FRAMEWORK_IDENTIFIER org.macos.fw_lib
  POSITION_INDEPENDENT_CODE ON
  PUBLIC_HEADER "${MACOS_FW_LIB_HDRS}"
)
target_link_libraries(macos_fw_lib PRIVATE ${QT_QTCORE_TARGET})