parent
176867d3e2
commit
6c7f3305b0
32
cmake/modules/FindASSIMP.cmake
Normal file
32
cmake/modules/FindASSIMP.cmake
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
# - Try to find Assimp
|
||||||
|
# Once done, this will define
|
||||||
|
#
|
||||||
|
# ASSIMP_FOUND - system has Assimp
|
||||||
|
# ASSIMP_INCLUDE_DIR - the Assimp include directories
|
||||||
|
# ASSIMP_LIBRARIES - link these to use Assimp
|
||||||
|
FIND_PATH( ASSIMP_INCLUDE_DIR assimp/mesh.h
|
||||||
|
/usr/include
|
||||||
|
/usr/local/include
|
||||||
|
/opt/local/include
|
||||||
|
${CMAKE_SOURCE_DIR}/includes
|
||||||
|
)
|
||||||
|
FIND_LIBRARY( ASSIMP_LIBRARY assimp
|
||||||
|
/usr/lib64
|
||||||
|
/usr/lib
|
||||||
|
/usr/local/lib
|
||||||
|
/opt/local/lib
|
||||||
|
${CMAKE_SOURCE_DIR}/lib
|
||||||
|
)
|
||||||
|
IF(ASSIMP_INCLUDE_DIR AND ASSIMP_LIBRARY)
|
||||||
|
SET( ASSIMP_FOUND TRUE )
|
||||||
|
SET( ASSIMP_LIBRARIES ${ASSIMP_LIBRARY} )
|
||||||
|
ENDIF(ASSIMP_INCLUDE_DIR AND ASSIMP_LIBRARY)
|
||||||
|
IF(ASSIMP_FOUND)
|
||||||
|
IF(NOT ASSIMP_FIND_QUIETLY)
|
||||||
|
MESSAGE(STATUS "Found ASSIMP: ${ASSIMP_LIBRARY}")
|
||||||
|
ENDIF(NOT ASSIMP_FIND_QUIETLY)
|
||||||
|
ELSE(ASSIMP_FOUND)
|
||||||
|
IF(ASSIMP_FIND_REQUIRED)
|
||||||
|
MESSAGE(FATAL_ERROR "Could not find libASSIMP")
|
||||||
|
ENDIF(ASSIMP_FIND_REQUIRED)
|
||||||
|
ENDIF(ASSIMP_FOUND)
|
@ -8,6 +8,9 @@ find_package(glfw3 3.3 REQUIRED)
|
|||||||
## Find Bullet
|
## Find Bullet
|
||||||
find_package(Bullet REQUIRED)
|
find_package(Bullet REQUIRED)
|
||||||
|
|
||||||
|
## Find AssImp
|
||||||
|
find_package(ASSIMP REQUIRED)
|
||||||
|
|
||||||
if (LUA_ENABLED)
|
if (LUA_ENABLED)
|
||||||
## Find Lua
|
## Find Lua
|
||||||
find_package(Lua REQUIRED)
|
find_package(Lua REQUIRED)
|
||||||
@ -85,6 +88,10 @@ target_include_directories(couchlib
|
|||||||
PUBLIC
|
PUBLIC
|
||||||
${BULLET_INCLUDE_DIRS})
|
${BULLET_INCLUDE_DIRS})
|
||||||
|
|
||||||
|
target_include_directories(couchlib
|
||||||
|
PUBLIC
|
||||||
|
${ASSIMP_INCLUDE_DIR})
|
||||||
|
|
||||||
target_link_libraries(couchlib glfw)
|
target_link_libraries(couchlib glfw)
|
||||||
target_link_libraries(couchlib OpenGL::GL)
|
target_link_libraries(couchlib OpenGL::GL)
|
||||||
target_link_libraries(couchlib GLEW::GLEW)
|
target_link_libraries(couchlib GLEW::GLEW)
|
||||||
@ -92,6 +99,7 @@ if (LUA_ENABLED)
|
|||||||
target_link_libraries(couchlib_luascripting ${LUA_LIBRARIES})
|
target_link_libraries(couchlib_luascripting ${LUA_LIBRARIES})
|
||||||
endif ()
|
endif ()
|
||||||
target_link_libraries(couchlib ${BULLET_LIBRARIES})
|
target_link_libraries(couchlib ${BULLET_LIBRARIES})
|
||||||
|
target_link_libraries(couchlib ${ASSIMP_LIBRARY})
|
||||||
|
|
||||||
## Add documentation
|
## Add documentation
|
||||||
find_package(Doxygen REQUIRED
|
find_package(Doxygen REQUIRED
|
||||||
|
12
roadmap.md
12
roadmap.md
@ -96,15 +96,3 @@ motivation comes from new features.
|
|||||||
- [x] Compiles for windows
|
- [x] Compiles for windows
|
||||||
DLL Hell is still an issue, I have to distribute like 30 of them. Might go back to
|
DLL Hell is still an issue, I have to distribute like 30 of them. Might go back to
|
||||||
simply including them in the package.
|
simply including them in the package.
|
||||||
|
|
||||||
## Make platform available for retail
|
|
||||||
I think I might want to sell this software at some point.
|
|
||||||
- [ ] Add thirdparty libraries to source package
|
|
||||||
- [ ] Assimp
|
|
||||||
- [ ] Bullet
|
|
||||||
- [ ] Lua
|
|
||||||
- [ ] GLEW
|
|
||||||
- [ ] GLFW
|
|
||||||
- [ ] Double check for GPL compliance
|
|
||||||
- [ ] Host API somewhere
|
|
||||||
- [ ] Itch.io stuff
|
|
||||||
|
7
thirdparty/CMakeLists.txt
vendored
7
thirdparty/CMakeLists.txt
vendored
@ -3,10 +3,3 @@ project(Couch)
|
|||||||
## STB (image)
|
## STB (image)
|
||||||
target_include_directories(couchlib
|
target_include_directories(couchlib
|
||||||
PUBLIC stb)
|
PUBLIC stb)
|
||||||
|
|
||||||
## ASSIMP
|
|
||||||
add_subdirectory(assimp)
|
|
||||||
target_include_directories(couchlib
|
|
||||||
PUBLIC
|
|
||||||
assimp/include)
|
|
||||||
target_link_libraries(couchlib assimp::assimp)
|
|
||||||
|
Loading…
Reference in New Issue
Block a user