Skip to content

Commit

Permalink
add cmake for win32
Browse files Browse the repository at this point in the history
  • Loading branch information
microcai committed Dec 18, 2012
1 parent fa57c62 commit a9f8a12
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 4 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ SET(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR})
set(Boost_USE_MULTITHREADED ON)
set(Boost_USE_STATIC_LIBS ON)
set(Boost_USE_STATIC_RUNTIME ON)

find_package( Boost 1.51 REQUIRED COMPONENTS thread filesystem)

#dont't define this, libbt need depreated api
#add_definitions(-DBOOST_SYSTEM_NO_DEPRECATED)

include_directories(${Boost_INCLUDE_DIRS})
include_directories(${PROJECT_SOURCE_DIR})
include_directories(libav/)
include_directories(source/)
Expand Down
1 change: 0 additions & 1 deletion linux/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ find_package(SDL REQUIRED)
find_package(X11)
find_package( Boost 1.51 COMPONENTS filesystem)

include_directories(${Boost_INCLUDE_DIRS})
include_directories(${SDL_INCLUDE_DIR})

add_executable(avplayer player.cpp main.cpp)
Expand Down
13 changes: 13 additions & 0 deletions win32/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1 +1,14 @@

add_executable(avplayer
avplayer/avplayer.rc
avplayer/main.cpp
avcore/avplayer.cpp
avcore/player_impl.cpp
avcore/stdafx.cpp
)

target_link_libraries(avplayer av avsource avaudio avaudio avvideo)

if(bt)
target_link_libraries(avplayer torrent-rasterbar)
endif()
1 change: 0 additions & 1 deletion win32/avcore/CMakeLists.txt

This file was deleted.

0 comments on commit a9f8a12

Please sign in to comment.