diff options
| author | Jason Maskell <[email protected]> | 2016-05-23 13:25:08 +0200 |
|---|---|---|
| committer | Jason Maskell <[email protected]> | 2016-05-23 13:25:08 +0200 |
| commit | 9eb5141c98951c36ed8561a0b0571c511a96ef95 (patch) | |
| tree | f536a91154df6b1b2bdaa3709a8bdd172c17769c /cmake/FindAntTweakBar.cmake | |
| parent | Moved media to a more central location. (diff) | |
| download | waveworks_archive-9eb5141c98951c36ed8561a0b0571c511a96ef95.tar.xz waveworks_archive-9eb5141c98951c36ed8561a0b0571c511a96ef95.zip | |
Added OpenGL sample - compiles and runs but doesn't work.
Diffstat (limited to 'cmake/FindAntTweakBar.cmake')
| -rw-r--r-- | cmake/FindAntTweakBar.cmake | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/cmake/FindAntTweakBar.cmake b/cmake/FindAntTweakBar.cmake new file mode 100644 index 0000000..a25e9a0 --- /dev/null +++ b/cmake/FindAntTweakBar.cmake @@ -0,0 +1,40 @@ +# Find AntTweakBar + +include(FindPackageHandleStandardArgs) + +if (CMAKE_CL_64) + set(ATBARCH "64") +else() + set(ATBARCH "") +endif() + +find_path(ATB_PATH AntTweakBar.h + HINTS ${GW_DEPS_ROOT}/AntTweakBar + ) + +MESSAGE("ATB SDK ${ATB_PATH}") + +find_library(ATB_LIBRARY_RELEASE + NAMES AntTweakBar${ATBARCH} + PATHS ${ATB_PATH}) + +# find_library(ATB_LIBRARY_DEBUG + # NAMES AntTweakBar${ATBARCH} + # PATHS ${ATB_PATH}/debug) + +FIND_PACKAGE_HANDLE_STANDARD_ARGS(ATB + DEFAULT_MSG + ATB_LIBRARY_RELEASE + ATB_PATH) + +if(ATB_FOUND) + mark_as_advanced(ATB_PATH ATB_LIBRARY_RELEASE ATB_LIBRARY_DEBUG) + set(ATB_INCLUDE_DIRS + ${ATB_PATH} + CACHE STRING "") + + set(ATB_LIBRARIES + optimized ${ATB_LIBRARY_RELEASE} + debug ${ATB_LIBRARY_RELEASE} + CACHE STRING "") +endif() |