Build fixed?

This commit is contained in:
irungentoo 2013-07-12 17:03:54 -04:00
parent e80ac120e1
commit 5725e86a93

View File

@ -13,15 +13,16 @@ set(test_sources
set(exe_name TOX-app) set(exe_name TOX-app)
target_link_libraries(sodium)
add_executable(${exe_name} add_executable(${exe_name}
${core_sources} ${core_sources}
${test_sources}) ${test_sources})
if(WIN32) if(WIN32)
target_link_libraries(${exe_name} ws2_32) target_link_libraries(${exe_name} ws2_32 libsodium)
endif() else(WIN32)
target_link_libraries(libsodium)
endif(WIN32)
if(CMAKE_COMPILER_IS_GNUCC) if(CMAKE_COMPILER_IS_GNUCC)
message(STATUS "==== GCC detected - Adding compiler flags") message(STATUS "==== GCC detected - Adding compiler flags")