mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-24 06:07:49 +08:00
44 lines
1.0 KiB
Diff
44 lines
1.0 KiB
Diff
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|
index 2f08b2f..fccf2a8 100644
|
|
--- a/CMakeLists.txt
|
|
+++ b/CMakeLists.txt
|
|
@@ -35,6 +35,8 @@ endif()
|
|
|
|
add_library(ap4 STATIC ${AP4_SOURCES})
|
|
|
|
+add_definitions(-D_CRT_SECURE_NO_WARNINGS)
|
|
+
|
|
# Includes
|
|
include_directories(
|
|
${SOURCE_CORE}
|
|
@@ -43,6 +45,14 @@ include_directories(
|
|
${SOURCE_METADATA}
|
|
)
|
|
|
|
+# AP4 includes
|
|
+file(GLOB AP4_INCLUDES
|
|
+ ${SOURCE_CODECS}/*.h
|
|
+ ${SOURCE_CORE}/*.h
|
|
+ ${SOURCE_CRYPTO}/*.h
|
|
+ ${SOURCE_METADATA}/*.h
|
|
+)
|
|
+
|
|
# Apps
|
|
file(GLOB BENTO4_APPS RELATIVE ${SOURCE_ROOT}/Apps ${SOURCE_ROOT}/Apps/*)
|
|
foreach(app ${BENTO4_APPS})
|
|
@@ -50,3 +60,13 @@ foreach(app ${BENTO4_APPS})
|
|
add_executable(${binary_name} ${SOURCE_ROOT}/Apps/${app}/${app}.cpp)
|
|
target_link_libraries(${binary_name} ap4)
|
|
endforeach()
|
|
+
|
|
+# Install targets
|
|
+install(TARGETS ap4
|
|
+ RUNTIME DESTINATION bin
|
|
+ LIBRARY DESTINATION lib
|
|
+ ARCHIVE DESTINATION lib
|
|
+)
|
|
+
|
|
+# Install headers
|
|
+install(FILES ${AP4_INCLUDES} DESTINATION include)
|
|
\ No newline at end of file
|