summaryrefslogtreecommitdiff
path: root/libs/assimp/samples/SimpleTexturedDirectx11/CMakeLists.txt
diff options
context:
space:
mode:
authorsanine <sanine.not@pm.me>2022-04-16 11:55:09 -0500
committersanine <sanine.not@pm.me>2022-04-16 11:55:09 -0500
commitdb81b925d776103326128bf629cbdda576a223e7 (patch)
tree58bea8155c686733310009f6bed7363f91fbeb9d /libs/assimp/samples/SimpleTexturedDirectx11/CMakeLists.txt
parent55860037b14fb3893ba21cf2654c83d349cc1082 (diff)
move 3rd-party librarys into libs/ and add built-in honeysuckle
Diffstat (limited to 'libs/assimp/samples/SimpleTexturedDirectx11/CMakeLists.txt')
-rw-r--r--libs/assimp/samples/SimpleTexturedDirectx11/CMakeLists.txt51
1 files changed, 51 insertions, 0 deletions
diff --git a/libs/assimp/samples/SimpleTexturedDirectx11/CMakeLists.txt b/libs/assimp/samples/SimpleTexturedDirectx11/CMakeLists.txt
new file mode 100644
index 0000000..007ada3
--- /dev/null
+++ b/libs/assimp/samples/SimpleTexturedDirectx11/CMakeLists.txt
@@ -0,0 +1,51 @@
+FIND_PACKAGE(DirectX)
+
+IF ( MSVC )
+ SET(M_LIB)
+ENDIF ()
+
+if ( MSVC )
+ ADD_DEFINITIONS( -D_SCL_SECURE_NO_WARNINGS )
+ ADD_DEFINITIONS( -D_CRT_SECURE_NO_WARNINGS )
+ REMOVE_DEFINITIONS( -DUNICODE -D_UNICODE )
+endif ()
+
+ADD_COMPILE_DEFINITIONS(SHADER_PATH="${CMAKE_CURRENT_SOURCE_DIR}/SimpleTexturedDirectx11/")
+
+INCLUDE_DIRECTORIES(
+ ${Assimp_SOURCE_DIR}/include
+ ${Assimp_SOURCE_DIR}/code
+ ${SAMPLES_SHARED_CODE_DIR}
+)
+
+LINK_DIRECTORIES(
+ ${Assimp_BINARY_DIR}
+ ${Assimp_BINARY_DIR}/lib
+)
+
+ADD_EXECUTABLE( assimp_simpletextureddirectx11 WIN32
+ SimpleTexturedDirectx11/Mesh.h
+ SimpleTexturedDirectx11/ModelLoader.cpp
+ SimpleTexturedDirectx11/ModelLoader.h
+ #SimpleTexturedDirectx11/PixelShader.hlsl
+ SimpleTexturedDirectx11/TextureLoader.cpp
+ SimpleTexturedDirectx11/TextureLoader.h
+ #SimpleTexturedDirectx11/VertexShader.hlsl
+ SimpleTexturedDirectx11/main.cpp
+ SimpleTexturedDirectx11/SafeRelease.hpp
+ ${SAMPLES_SHARED_CODE_DIR}/UTFConverter.cpp
+ ${SAMPLES_SHARED_CODE_DIR}/UTFConverter.h
+)
+
+TARGET_USE_COMMON_OUTPUT_DIRECTORY(assimp_simpletextureddirectx11)
+
+SET_PROPERTY(TARGET assimp_simpletextureddirectx11 PROPERTY DEBUG_POSTFIX ${CMAKE_DEBUG_POSTFIX})
+
+TARGET_LINK_LIBRARIES( assimp_simpletextureddirectx11 assimp comctl32.lib winmm.lib )
+SET_TARGET_PROPERTIES( assimp_simpletextureddirectx11 PROPERTIES
+ OUTPUT_NAME assimp_simpletextureddirectx11
+)
+
+INSTALL( TARGETS assimp_simpletextureddirectx11
+ DESTINATION "${ASSIMP_BIN_INSTALL_DIR}" COMPONENT assimp-dev
+)