forked from pixicoder/PS
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
03fa5e1
commit 2b2be69
Showing
7 changed files
with
53 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
.vscode/ | ||
build/ | ||
bin/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
cmake_minimum_required(VERSION 3.0.2) | ||
project(PS C) | ||
|
||
find_package(SDL2 REQUIRED) | ||
|
||
# set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -mwindows -s") | ||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -s") | ||
|
||
file(GLOB_RECURSE ${PROJECT_NAME}_SRC | ||
${CMAKE_CURRENT_SOURCE_DIR}/src/**.c | ||
) | ||
|
||
include_directories(${SDL2_INCLUDE_DIRS}) | ||
|
||
add_executable(${PROJECT_NAME} ${${PROJECT_NAME}_SRC}) | ||
target_link_libraries(${PROJECT_NAME} ${SDL2_LIBRARIES}) | ||
if(WIN32) | ||
target_link_libraries(${PROJECT_NAME} imm32 winmm version setupapi hid) | ||
endif(WIN32) | ||
if(MINGW) | ||
target_link_libraries(${PROJECT_NAME} imm32 winmm version setupapi hid samplerate) | ||
endif(MINGW) | ||
|
||
target_link_libraries(${PROJECT_NAME} ${SDL2_LIBRARIES} m) | ||
|
||
install(TARGETS ${PROJECT_NAME} | ||
DESTINATION ${CMAKE_INSTALL_BINDIR}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.