Skip to content

Commit

Permalink
Fix visa lib output name on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
esarver committed Aug 20, 2024
1 parent 3b21420 commit cdd6f80
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,17 @@ project(
VERSION 0.0.0
DESCRIPTION "A stub library to build VISA applications against, no license required."
)
set(
lib_name
${PROJECT_NAME}
)
if (WIN32)
set(
lib_name
${lib_name}64
)

endif (WIN32)

set(OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/out)

Expand All @@ -19,20 +30,20 @@ set(CMAKE_LIBRARY_OUTPUT_DIRECTORY_RELEASE ${CMAKE_BINARY_DIR}/out)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY_RELEASE ${CMAKE_BINARY_DIR}/out)

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

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

set_target_properties(
${PROJECT_NAME}
${lib_name}
PROPERTIES
PUBLIC_HEADER
./visatypes.h
Expand Down

0 comments on commit cdd6f80

Please sign in to comment.