Cleanup + modifications to CMakeLists.txt

This commit is contained in:
Functioning Member of Society 2023-03-05 02:29:37 +01:00
parent ecba24bd4e
commit f56aace8b2
3 changed files with 6 additions and 6 deletions

2
.gitignore vendored
View File

@ -1,5 +1,5 @@
CMakeFiles
CMakeLists.txt
cmake_install.cmake
CMakeCache.txt
Makefile
PogoBijoux

View File

@ -1,16 +1,16 @@
cmake_minimum_required(VERSION 3.16 FATAL_ERROR)
cmake_minimum_required(VERSION 3.16 FATAL_ERROR) #Why cannot older versions be used?
project(PB)
project(PogoBijoux)
add_executable(PB "src/main.cpp" "src/Sound.c")
add_executable(PogoBijoux "src/main.cpp" "src/Sound.c")
if(UNIX AND NOT APPLE) # linux
if(UNIX AND NOT APPLE) #GNU/Linux
target_link_libraries(PB -lopenal)
target_link_libraries(PB -lsndfile)
target_link_libraries(PB -lIrrlicht -lGL -lGLU -lXxf86vm -lXext -lX11)
endif()
if (WIN32) # windows
if (WIN32) #Windows
target_link_libraries(${PROJECT_NAME} -lopenal-soft)
target_link_libraries(${PROJECT_NAME} -lsndfile)
target_link_libraries(${PROJECT_NAME} -lirrlicht)

BIN
PB

Binary file not shown.