Skip to content

Commit

Permalink
xrCore: fixed CMakeLists.txt for linking external library
Browse files Browse the repository at this point in the history
  • Loading branch information
eagleivg committed May 25, 2018
1 parent 6772c65 commit bc58018
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
7 changes: 0 additions & 7 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,6 @@ add_definitions(

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

#find_package(Lua51 REQUIRED)
#find_package(OpenSSL REQUIRED)
#find_package(Theora REQUIRED)
#find_package(OGG REQUIRED)
#find_package(SDL2 REQUIRED)
#find_package(LZO REQUIRED)

add_library(tbb SHARED IMPORTED GLOBAL)
add_library(lzo SHARED IMPORTED GLOBAL)
add_library(pugixml SHARED IMPORTED GLOBAL)
Expand Down
6 changes: 5 additions & 1 deletion src/xrCore/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,8 @@ message( "path " ${CMAKE_CURRENT_SOURCE_DIR} )

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

#target_link_libraries(xrCore ${SDL2_LIBRARY} ${OPENSSL_LIBRARIES} ${LZO_LIBRARIES})
find_library(SDL2_LIB SDL2)
find_library(LZO_LIBRARY lzo2)
find_library(CRYPTO_LIBRARY crypto++)
find_library(PUGIXML_LIBRARY pugixml)
target_link_libraries(xrCore ${SDL2_LIB} ${OPENSSL_LIBRARIES} ${LZO_LIBRARY} ${CRYPTO_LIBRARY} ${PUGIXML_LIBRARY})

0 comments on commit bc58018

Please sign in to comment.