mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-11-22 04:21:23 +00:00
cmake: Fixes to allow MSVC to compile
running is another story Author: Ronald Kinard <furyhunter600@gmail.com> Date: Wed Jan 28 02:09:03 2015 -0600 git-svn-id: https://code.orospakr.ca/svn/srb2/trunk@9013 6de4a73c-47e2-0310-b8c1-93d6ecd3f8cd
This commit is contained in:
parent
c8c7878005
commit
515895dd30
1 changed files with 11 additions and 0 deletions
|
@ -27,8 +27,19 @@ find_library(SDL2_LIBRARY
|
|||
"/usr/local/lib"
|
||||
)
|
||||
|
||||
find_library(SDL2_MAIN_LIBRARY
|
||||
NAMES SDL2_main
|
||||
PATHS
|
||||
${SDL2_PKGCONF_LIBRARY_DIRS}
|
||||
/usr/lib
|
||||
/usr/local/lib
|
||||
)
|
||||
|
||||
|
||||
# set include dir variables
|
||||
set(SDL2_PROCESS_INCLUDES SDL2_INCLUDE_DIR)
|
||||
set(SDL2_PROCESS_LIBS SDL2_LIBRARY)
|
||||
set(SDL2_MAIN_PROCESS_INCLUDES SDL2_INCLUDE_DIR)
|
||||
set(SDL2_MAIN_PROCESS_LIBS SDL2_MAIN_LIBRARY)
|
||||
libfind_process(SDL2)
|
||||
libfind_process(SDL2_MAIN)
|
||||
|
|
Loading…
Reference in a new issue