First working project
This commit is contained in:
parent
525da74e4c
commit
44b415cbaa
8 changed files with 62 additions and 0 deletions
21
SDLU_Example/CMakeLists.txt
Normal file
21
SDLU_Example/CMakeLists.txt
Normal file
|
@ -0,0 +1,21 @@
|
|||
set(PNAME sdlu_example)
|
||||
|
||||
add_executable(${PNAME}
|
||||
main.cpp header.hpp
|
||||
)
|
||||
|
||||
target_include_directories(${PNAME} PRIVATE
|
||||
${PROJECT_SOURCE_DIR}/SDLU
|
||||
${PROJECT_SOURCE_DIR}/3rdparty/SDL/include
|
||||
)
|
||||
|
||||
target_link_libraries(${PNAME}
|
||||
${CMAKE_BINARY_DIR}/3rdparty/SDL/SDL2d.lib
|
||||
${CMAKE_BINARY_DIR}/3rdparty/SDL/SDL2maind.lib
|
||||
${CMAKE_BINARY_DIR}/SDLU/SDLU.lib
|
||||
)
|
||||
|
||||
add_custom_command(TARGET ${PNAME}
|
||||
POST_BUILD
|
||||
COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_BINARY_DIR}/3rdparty/SDL/SDL2d.dll ${CMAKE_BINARY_DIR}/SDLU_Example/
|
||||
)
|
2
SDLU_Example/header.hpp
Normal file
2
SDLU_Example/header.hpp
Normal file
|
@ -0,0 +1,2 @@
|
|||
#pragma once
|
||||
#include "SDLU.hpp"
|
6
SDLU_Example/main.cpp
Normal file
6
SDLU_Example/main.cpp
Normal file
|
@ -0,0 +1,6 @@
|
|||
#include "header.hpp"
|
||||
|
||||
int main(int argc, char** argv)
|
||||
{
|
||||
return 0;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue