20 lines
480 B
CMake
20 lines
480 B
CMake
include_directories(../3rdpart)
|
|
|
|
if (CMAKE_SYSTEM_NAME MATCHES "Windows")
|
|
set(MediaServer_src_list ./WebApi.cpp ./WebHook.cpp main.cpp)
|
|
else()
|
|
file(GLOB MediaServer_src_list ./*.cpp ./*.h)
|
|
endif()
|
|
|
|
message(STATUS ${MediaServer_src_list})
|
|
#add_compile_options(-l sqlite3)
|
|
add_executable(MediaServer ${MediaServer_src_list})
|
|
|
|
if(WIN32)
|
|
set_target_properties(MediaServer PROPERTIES COMPILE_FLAGS ${VS_FALGS} )
|
|
endif()
|
|
|
|
target_link_libraries(MediaServer ${LINK_LIB_LIST} dl)
|
|
|
|
|