cmake - How to include Assimp with CMakeLists? -


i'm unable include external library assimp project using cmakelists.

i got working doing:

add_subdirectory(${cmake_source_dir}/external/assimp-3.1.1-win-binaries) include_directories(${cmake_source_dir}/external/assimp-3.1.1-win-binaries/include) target_link_libraries(myproject assimp) 

but don't want use add_subdirectoy since adds ide. (visual studios 2013)

why unable include assimp include directory , link project this?

include_directories(${cmake_source_dir}/external/assimp-3.1.1-win-binaries/include) link_directories(${cmake_source_dir}/external/assimp-3.1.1-win-binaries/lib32/) target_link_libraries(myproject assimp) 


Comments

Popular posts from this blog

Fail to load namespace Spring Security http://www.springframework.org/security/tags -

sql - MySQL query optimization using coalesce -

unity3d - Unity local avoidance in user created world -