Skip to content

Commit

Permalink
Generate MacOS Framework
Browse files Browse the repository at this point in the history
  • Loading branch information
esarver committed Aug 20, 2024
1 parent 76b80b5 commit e3be2d8
Showing 1 changed file with 15 additions and 21 deletions.
36 changes: 15 additions & 21 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,32 +28,26 @@ set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY_RELEASE ${CMAKE_BINARY_DIR}/out)
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY_RELEASE ${CMAKE_BINARY_DIR}/out)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY_RELEASE ${CMAKE_BINARY_DIR}/out)

set(
BUILD_SHARED_LIBS
TRUE
)
set(BUILD_SHARED_LIBS TRUE)

set(
CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS
TRUE
)
set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS TRUE)

add_library(
${lib_name}
SHARED
add_library(${lib_name} SHARED
./stub.c
)

set_target_properties(
${lib_name}
PROPERTIES
PUBLIC_HEADER
./visa.h
set_target_properties(${lib_name} PROPERTIES
PUBLIC_HEADER ./visa.h
)

set_target_properties(
${lib_name}
PROPERTIES
PUBLIC_HEADER
./visatypes.h
set_target_properties(${lib_name} PROPERTIES
PUBLIC_HEADER ./visatypes.h
)

if (APPLE)
set_target_properties(${lib_name} PROPERTIES
FRAMEWORK TRUE
FRAMEWORK_VERSION C
MACOSX_FRAMEWORK_IDENTIFIER VISA
)
endif (APPLE)

0 comments on commit e3be2d8

Please sign in to comment.