Skip to content

Commit

Permalink
use target-based include directories
Browse files Browse the repository at this point in the history
  • Loading branch information
alextwothousand authored Aug 5, 2021
1 parent 61879f5 commit 8abe375
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ else()
add_definitions(-Wno-error)
endif()

include_directories(${PROJECT_SOURCE_DIR}/include)
target_include_directories(enet PUBLIC ${PROJECT_SOURCE_DIR}/include)

if (ENET_STATIC)
add_library(enet_static STATIC test/library.c)
add_library(enet STATIC test/library.c)

if (WIN32)
target_link_libraries(enet_static winmm ws2_32)
target_link_libraries(enet winmm ws2_32)
endif()
endif()

Expand Down

0 comments on commit 8abe375

Please sign in to comment.