Skip to content

Commit bc58018

Browse files
committed
xrCore: fixed CMakeLists.txt for linking external library
1 parent 6772c65 commit bc58018

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

src/CMakeLists.txt

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,6 @@ add_definitions(
2222

2323
add_compile_options(-std=c++14 -fpermissive)
2424

25-
#find_package(Lua51 REQUIRED)
26-
#find_package(OpenSSL REQUIRED)
27-
#find_package(Theora REQUIRED)
28-
#find_package(OGG REQUIRED)
29-
#find_package(SDL2 REQUIRED)
30-
#find_package(LZO REQUIRED)
31-
3225
add_library(tbb SHARED IMPORTED GLOBAL)
3326
add_library(lzo SHARED IMPORTED GLOBAL)
3427
add_library(pugixml SHARED IMPORTED GLOBAL)

src/xrCore/CMakeLists.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,8 @@ message( "path " ${CMAKE_CURRENT_SOURCE_DIR} )
1818

1919
add_library(xrCore SHARED ${XRCORE__SOURCES} ${XRCORE__INCLUDES})
2020

21-
#target_link_libraries(xrCore ${SDL2_LIBRARY} ${OPENSSL_LIBRARIES} ${LZO_LIBRARIES})
21+
find_library(SDL2_LIB SDL2)
22+
find_library(LZO_LIBRARY lzo2)
23+
find_library(CRYPTO_LIBRARY crypto++)
24+
find_library(PUGIXML_LIBRARY pugixml)
25+
target_link_libraries(xrCore ${SDL2_LIB} ${OPENSSL_LIBRARIES} ${LZO_LIBRARY} ${CRYPTO_LIBRARY} ${PUGIXML_LIBRARY})

0 commit comments

Comments
 (0)