-
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.
Merge pull request #7 from AsulconS/develop
Develop
- Loading branch information
Showing
100 changed files
with
1,241 additions
and
108,025 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,15 @@ | ||
*.h linguist-language=cpp | ||
*.inc linguist-language=cpp | ||
thirdparty/* linguist-vendored | ||
|
||
* text=auto eol=lf | ||
*.bat eol=crlf | ||
|
||
*.icns binary | ||
*.ico binary | ||
*.jar binary | ||
*.png binary | ||
*.jpg binary | ||
*.ttf binary | ||
*.tza binary | ||
Footer |
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
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
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
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 |
---|---|---|
@@ -1,19 +1,71 @@ | ||
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY $<1:${CMAKE_SOURCE_DIR}/examples>) | ||
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY $<1:${CMAKE_SOURCE_DIR}>/examples) | ||
|
||
if(HSGIL_BUILD_SHARED) | ||
if(WIN32) | ||
add_custom_command( | ||
OUTPUT ${CMAKE_SOURCE_DIR}/examples/${HSGIL_LIB_NAME}.dll | ||
$<$<CONFIG:Debug>:${CMAKE_SOURCE_DIR}/examples/${HSGIL_LIB_NAME}.pdb> | ||
COMMAND ${CMAKE_COMMAND} -E copy | ||
${CMAKE_SOURCE_DIR}/lib/${HSGIL_LIB_NAME}.dll | ||
$<$<CONFIG:Debug>:${CMAKE_SOURCE_DIR}/lib/${HSGIL_LIB_NAME}.pdb> | ||
${CMAKE_SOURCE_DIR}/examples | ||
) | ||
add_custom_target(HSGIL_COPY_LIBS_TO_EXAMPLES | ||
DEPENDS ${CMAKE_SOURCE_DIR}/examples/${HSGIL_LIB_NAME}.dll | ||
$<$<CONFIG:Debug>:${CMAKE_SOURCE_DIR}/examples/${HSGIL_LIB_NAME}.pdb> | ||
) | ||
else() | ||
add_custom_command( | ||
OUTPUT ${CMAKE_SOURCE_DIR}/examples/lib${HSGIL_LIB_NAME}.so | ||
COMMAND ${CMAKE_COMMAND} -E copy | ||
${CMAKE_SOURCE_DIR}/build/lib${HSGIL_LIB_NAME}.so | ||
${CMAKE_SOURCE_DIR}/examples | ||
) | ||
add_custom_target(HSGIL_COPY_LIBS_TO_EXAMPLES | ||
DEPENDS ${CMAKE_SOURCE_DIR}/examples/lib${HSGIL_LIB_NAME}.so | ||
) | ||
endif() | ||
add_dependencies(HSGIL_COPY_LIBS_TO_EXAMPLES ${HSGIL_LIB_NAME}) | ||
endif() | ||
|
||
macro(build_cpp_source filename) | ||
add_executable(${filename} ${filename}.cpp) | ||
add_executable(${filename} src/${filename}.cpp) | ||
if(HSGIL_DEV_OPT_1) | ||
target_compile_definitions(${filename} | ||
PRIVATE | ||
__STDC_LIB_EXT1__ | ||
C__HSGIL_DEV_OPT_1 | ||
) | ||
else() | ||
target_compile_definitions(${filename} | ||
PRIVATE | ||
__STDC_LIB_EXT1__ | ||
) | ||
endif() | ||
target_include_directories(${filename} PRIVATE ../include) | ||
target_include_directories(${filename} PRIVATE ../include/HSGIL/external) | ||
target_include_directories(${filename} PRIVATE "C:/Program Files (x86)/Visual Leak Detector/include") | ||
target_link_directories(${filename} PRIVATE "C:/Program Files (x86)/Visual Leak Detector/lib/Win64") | ||
target_link_libraries(${filename} LINK_PUBLIC ${HSGIL_LIB_NAME} opengl32 vld) | ||
add_custom_command(TARGET ${filename} POST_BUILD | ||
COMMAND ${CMAKE_COMMAND} -E copy_if_different | ||
$<TARGET_FILE:${HSGIL_LIB_NAME}> | ||
${CMAKE_SOURCE_DIR}/examples | ||
) | ||
if(HSGIL_DEV_OPT_1) | ||
target_include_directories(${filename} PRIVATE "C:/Program Files (x86)/Visual Leak Detector/include") | ||
target_link_directories(${filename} PRIVATE "C:/Program Files (x86)/Visual Leak Detector/lib/Win64") | ||
target_link_libraries(${filename} LINK_PUBLIC ${HSGIL_LIB_NAME} opengl32 vld) | ||
else() | ||
if(WIN32) | ||
target_link_libraries(${filename} LINK_PUBLIC ${HSGIL_LIB_NAME} opengl32) | ||
else() | ||
target_link_libraries(${filename} LINK_PUBLIC ${HSGIL_LIB_NAME}) | ||
endif() | ||
endif() | ||
if(HSGIL_BUILD_SHARED) | ||
add_dependencies(${filename} HSGIL_COPY_LIBS_TO_EXAMPLES) | ||
endif() | ||
endmacro(build_cpp_source) | ||
|
||
build_cpp_source(map) | ||
#build_cpp_source(map) | ||
build_cpp_source(finn) | ||
build_cpp_source(ball) | ||
build_cpp_source(keys) | ||
build_cpp_source(triangle) | ||
build_cpp_source(gyroscope) | ||
build_cpp_source(doubleWindow) | ||
build_cpp_source(physicsTest) | ||
build_cpp_source(shaderTester) |
This file was deleted.
Oops, something went wrong.
Binary file not shown.
Oops, something went wrong.