Changeset 518 for trunk/thune/gl/CMakeLists.txt
- Timestamp:
- 04/06/08 06:15:01 (8 months ago)
- Files:
-
- 1 modified
-
trunk/thune/gl/CMakeLists.txt (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/thune/gl/CMakeLists.txt
r517 r518 1 1 project(ThuneGL C) 2 3 set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/../cmake_modules/")4 2 5 3 # set(CMAKE_BUILD_TYPE Debug) … … 7 5 8 6 9 # These package checks are only needed when ../CMakeLists.txt is not used. 10 #find_package( FreeType REQUIRED ) 11 #find_package( OpenGL REQUIRED ) 12 #find_package( OpenAL REQUIRED ) 13 #find_package( PNG REQUIRED ) 14 #find_package( GLV REQUIRED ) 7 # Why isn't this the default? 8 # Having to repeat the conditional expression is retarded. 9 set(CMAKE_ALLOW_LOOSE_LOOP_CONSTRUCTS true) 10 11 set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/../cmake_modules/") 12 13 14 find_package( Thune REQUIRED ) 15 find_package( FreeType REQUIRED ) 16 find_package( OpenGL REQUIRED ) 17 find_package( OpenAL REQUIRED ) 18 find_package( PNG REQUIRED ) 19 find_package( GLV REQUIRED ) 15 20 16 21 … … 19 24 add_definitions(-std=c99) 20 25 # set(GLV_FILE glv/mac/glv.c) 21 endif ( APPLE)26 endif () 22 27 23 28 if (UNIX AND NOT APPLE) … … 28 33 # set(GLV_FILE glv/x11/glv.c) 29 34 set(JOYSTICK_FILE joystick.c) 30 endif ( UNIX AND NOT APPLE)35 endif () 31 36 32 37 if (WIN32) 33 38 include_directories(../win32) 34 39 # set(GLV_FILE glv/win32/glv.c) 35 endif ( WIN32)40 endif () 36 41 37 42 … … 70 75 set_target_properties(thuneGL-lib PROPERTIES OUTPUT_NAME "thune-gl") 71 76 77 if (APPLE) 78 target_link_libraries(thuneGL-lib bz2 m) 79 endif () 80 81 if (UNIX AND NOT APPLE) 82 target_link_libraries(thuneGL-lib 83 vorbis vorbisfile alut 84 X11 Xxf86vm 85 bz2 m pthread 86 ) 87 endif () 88 89 if (WIN32) 90 target_link_libraries(thuneGL-lib ws2_32) 91 endif () 92 72 93 link_directories(../) 73 94 target_link_libraries(thuneGL-lib 74 thune-lib95 ${THUNE_LIBRARY} 75 96 ${PNG_LIBRARY} 76 97 ${FREETYPE_LIBRARY} … … 82 103 83 104 84 add_executable(thune-gl 85 ../console.c 86 ) 87 105 add_executable(thune-gl ../console.c) 88 106 target_link_libraries(thune-gl thuneGL-lib) 89 90 91 if (APPLE)92 target_link_libraries(thuneGL-lib bz2 m)93 endif (APPLE)94 95 if (UNIX AND NOT APPLE)96 target_link_libraries(thuneGL-lib97 vorbis vorbisfile alut98 X11 Xxf86vm99 bz2 m pthread100 )101 endif (UNIX AND NOT APPLE)102 103 if (WIN32)104 target_link_libraries(thuneGL-lib ws2_32)105 endif (WIN32)106 107 107 108 … … 110 111 install(TARGETS thuneGL-lib DESTINATION /usr/local/lib) 111 112 #install(FILES urlan.h DESTINATION /usr/local/include) 112 endif ( UNIX)113 endif () 113 114 114 115
