Skip to content

Commit

Permalink
Go full in on ADS submodule
Browse files Browse the repository at this point in the history
  • Loading branch information
Joshpolansky committed Feb 15, 2024
1 parent d60365c commit f91c7ce
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 15 deletions.
3 changes: 3 additions & 0 deletions src/LuxServer/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ project(luxserver)

include_directories(PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/include)

add_definitions(-DNOMINMAX)

add_subdirectory(src)
add_subdirectory(depends/ADS)


2 changes: 0 additions & 2 deletions src/LuxServer/include/AdsExtension.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
#ifndef __ADSDEF_2_H__
#define __ADSDEF_2_H__

#include "AdsDef.h"

#ifndef WIN32
typedef char BYTE;
typedef uint32_t ULONG;
Expand Down
14 changes: 1 addition & 13 deletions src/LuxServer/src/DataSource/ADS/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,5 @@ target_link_libraries(adsdatasrc PUBLIC util)

#include the local files
target_include_directories(adsdatasrc PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
target_include_directories(adsdatasrc PUBLIC ${CMAKE_SOURCE_DIR}/depends/ADS/AdsLib)

#if windows use the windows library
if(WIN32)
# find_package(ads CONFIG)
# target_link_libraries(adsdatasrc PUBLIC ads::ads)
target_link_libraries(adsdatasrc PUBLIC debug ${CMAKE_SOURCE_DIR}/lib/debug/ads.lib)
target_link_libraries(adsdatasrc PUBLIC optimized ${CMAKE_SOURCE_DIR}/lib/release/ads.lib)
endif(WIN32)

#if linux use the linux library
if(UNIX)
target_link_libraries(adsdatasrc PUBLIC libAdsLib.a)
endif(UNIX)
target_link_libraries(adsdatasrc PUBLIC ads::ads)

0 comments on commit f91c7ce

Please # to comment.