Skip to content

Commit 4ad2a7f

Browse files
committed
Add CMake support
1 parent 2db0e9c commit 4ad2a7f

File tree

4 files changed

+55
-1
lines changed

4 files changed

+55
-1
lines changed

.gitignore

+10-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
#common
2+
.DS_Store
3+
build*/
4+
install*/
5+
.vscode/
6+
*build/
7+
.idea/
8+
cmake-*/
9+
bin/
10+
#project
111
ilbmtoicon
212
infoinfo
3-
.vscode

.gitmodules

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "cmake/common"]
2+
path = cmake/common
3+
url = ../cmake-amiga-common-library

CMakeLists.txt

+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
cmake_minimum_required(VERSION 3.14.0)
2+
project(ilbmtoicon VERSION 1.0.0)
3+
4+
# Additional CMake modules
5+
include(cmake/common/setup_amiga_common.cmake)
6+
7+
# Set up information for Aminet
8+
add_project_info(
9+
"ilbmtoicon"
10+
"AROS"
11+
"util/cli"
12+
"m68k-amigaos"
13+
)
14+
15+
get_verstring(VERSTRING)
16+
add_compile_definitions(PRIVATE VERSION_STRING="${VERSTRING}")
17+
18+
find_package(PNG REQUIRED)
19+
find_package(ZLIB REQUIRED)
20+
21+
# ilbmtoicon
22+
add_executable(ilbmtoicon
23+
ilbmtoicon.c
24+
)
25+
26+
install(TARGETS ilbmtoicon DESTINATION bin)
27+
28+
29+
target_link_libraries(ilbmtoicon PRIVATE ${PNG_LIBRARY} ${ZLIB_LIBRARY})
30+
31+
set_target_properties(ilbmtoicon PROPERTIES LINKER_LANGUAGE C)
32+
33+
# infoinfo
34+
add_executable(infoinfo
35+
infoinfo.c
36+
)
37+
install(TARGETS infoinfo DESTINATION bin)
38+
39+
set_target_properties(infoinfo PROPERTIES LINKER_LANGUAGE C)
40+
41+
add_aminet_readme_generator(ilbmtoicon "ilbmtoicon.readme")

cmake/common

Submodule common added at 696f93d

0 commit comments

Comments
 (0)