Skip to content

Commit

Permalink
fix cmake
Browse files Browse the repository at this point in the history
  • Loading branch information
irov committed Jan 21, 2024
1 parent e44c540 commit 7c5203c
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -55,18 +55,20 @@ MACRO(HUMMINGBIRD_ADD_LIBRARY)
ADD_LIBRARY(${PROJECT_NAME} STATIC ${HUMMINGBIRD_SOURCE_FILES})

set_target_properties(${PROJECT_NAME} PROPERTIES LINKER_LANGUAGE C)
set_target_properties(${PROJECT_NAME} PROPERTIES FOLDER hummingbird)

if(MSVC)
set_target_properties(${PROJECT_NAME} PROPERTIES FOLDER hummingbird)
endif()
ENDMACRO()

MACRO(HUMMINGBIRD_ADD_INTERFACE)
ADD_LIBRARY(${PROJECT_NAME} INTERFACE)

if(MSVC)
add_custom_target(${PROJECT_NAME}.headers SOURCES ${HUMMINGBIRD_SOURCE_FILES})

set_target_properties(${PROJECT_NAME} PROPERTIES FOLDER hummingbird)
endif()

set_target_properties(${PROJECT_NAME} PROPERTIES LINKER_LANGUAGE C)
set_target_properties(${PROJECT_NAME} PROPERTIES FOLDER hummingbird)
ENDMACRO()

ADD_SUBDIRECTORY(src)

0 comments on commit 7c5203c

Please sign in to comment.